Skip to content

Commit 6030e49

Browse files
committed
comments and traces
1 parent ae58985 commit 6030e49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dfx/src/lib/builders/motoko.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl CanisterBuilder for MotokoBuilder {
9393
info: &CanisterInfo,
9494
) -> DfxResult<Vec<CanisterId>> {
9595
let motoko_info = info.as_info::<MotokoCanisterInfo>()?;
96-
let imports = get_imports(self.cache.as_ref(), &motoko_info)?;
96+
let imports = get_imports(self.cache.as_ref(), &motoko_info)?; // TODO: slow operation
9797

9898
Ok(imports
9999
.iter()

src/dfx/src/lib/models/canister.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ impl CanisterPool {
691691
self.step_prebuild_all(log, build_config)
692692
.map_err(|e| DfxError::new(BuildError::PreBuildAllStepFailed(Box::new(e))))?;
693693

694+
trace!(log, "Building dependencies graph.");
694695
let graph = self.build_dependencies_graph()?;
695696
let nodes = petgraph::algo::toposort(&graph, None).map_err(|cycle| {
696697
let message = match graph.node_weight(cycle.node_id()) {

0 commit comments

Comments
 (0)