-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(profiler): Docs on profiler command and more complete error rep…
…orting (#7436) Co-authored-by: Michael J Klein <[email protected]>
- Loading branch information
1 parent
7a9c8c1
commit da364d8
Showing
8 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use fm::FileMap; | ||
use noirc_errors::{CustomDiagnostic, Span}; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, Error)] | ||
pub(crate) enum CliError { | ||
#[error("Failed to run profiler command")] | ||
Generic, | ||
} | ||
|
||
/// Report an error from the CLI that is not reliant on a stack trace. | ||
pub(crate) fn report_error(message: String) -> Result<(), CliError> { | ||
let error = CustomDiagnostic::simple_error(message.clone(), String::new(), Span::default()); | ||
noirc_errors::reporter::report(&FileMap::default(), &error, None, false); | ||
Err(CliError::Generic) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da364d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Test Suite Duration'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.20
.AztecProtocol_aztec-packages_noir-projects_noir-protocol-circuits_crates_reset-kernel-lib
11
s9
s1.22
This comment was automatically generated by workflow using github-action-benchmark.
CC: @TomAFrench