add tracing to the treehouse as an instrumenting profiler
to create a trace of the treehouse's startup, use `--trace file.json`
This commit is contained in:
parent
2f7fbc1b6f
commit
07419ca702
22 changed files with 287 additions and 136 deletions
|
@ -2,6 +2,7 @@ use std::ops::ControlFlow;
|
|||
|
||||
use indexmap::IndexMap;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tracing::instrument;
|
||||
|
||||
use crate::vfs::{self, Dir, VPathBuf};
|
||||
|
||||
|
@ -17,6 +18,7 @@ pub struct ImportRoot {
|
|||
}
|
||||
|
||||
impl ImportMap {
|
||||
#[instrument(name = "ImportMap::generate", skip(import_roots))]
|
||||
pub fn generate(site: &str, root: &dyn Dir, import_roots: &[ImportRoot]) -> Self {
|
||||
let mut import_map = ImportMap {
|
||||
imports: IndexMap::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue