Skip to content

Commit

Permalink
enable decode_internal
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Aug 24, 2024
1 parent 374804d commit 3b324c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/forge/bin/cmd/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl TestArgs {
/// configured filter will be executed
///
/// Returns the test results for all matching tests.
pub async fn execute_tests(self) -> Result<TestOutcome> {
pub async fn execute_tests(mut self) -> Result<TestOutcome> {
// Merge all configs.
let (mut config, mut evm_opts) = self.load_config_and_evm_opts_emit_warnings()?;

Expand Down Expand Up @@ -323,6 +323,11 @@ impl TestArgs {

let env = evm_opts.evm_env().await?;

// Enable internal tracing for more informative flamegraph.
if self.flamegraph.is_some() {
self.decode_internal = Some(None);
}

// Choose the internal function tracing mode, if --decode-internal is provided.
let decode_internal = if let Some(maybe_fn) = self.decode_internal.as_ref() {
if maybe_fn.is_some() {
Expand Down

0 comments on commit 3b324c0

Please sign in to comment.