Skip to content

Commit

Permalink
add tracing for prepare_package and read_program_from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Jan 3, 2025
1 parent a726016 commit 9069319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tooling/nargo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ pub fn parse_all(file_manager: &FileManager) -> ParsedFiles {
.collect()
}

#[tracing::instrument(level = "trace", skip_all)]
pub fn prepare_package<'file_manager, 'parsed_files>(
file_manager: &'file_manager FileManager,
parsed_files: &'parsed_files ParsedFiles,
Expand Down
1 change: 1 addition & 0 deletions tooling/nargo_cli/src/cli/fs/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn save_build_artifact_to_file<P: AsRef<Path>, T: ?Sized + serde::Serialize>(
circuit_path
}

#[tracing::instrument(level = "trace", skip_all)]
pub(crate) fn read_program_from_file<P: AsRef<Path>>(
circuit_path: P,
) -> Result<ProgramArtifact, FilesystemError> {
Expand Down

0 comments on commit 9069319

Please sign in to comment.