File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
crates/forge/bin/cmd/test Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ impl TestArgs {
254
254
/// configured filter will be executed
255
255
///
256
256
/// Returns the test results for all matching tests.
257
- pub async fn execute_tests ( self ) -> Result < TestOutcome > {
257
+ pub async fn execute_tests ( mut self ) -> Result < TestOutcome > {
258
258
// Merge all configs.
259
259
let ( mut config, mut evm_opts) = self . load_config_and_evm_opts_emit_warnings ( ) ?;
260
260
@@ -323,6 +323,11 @@ impl TestArgs {
323
323
324
324
let env = evm_opts. evm_env ( ) . await ?;
325
325
326
+ // Enable internal tracing for more informative flamegraph.
327
+ if self . flamegraph . is_some ( ) {
328
+ self . decode_internal = Some ( None ) ;
329
+ }
330
+
326
331
// Choose the internal function tracing mode, if --decode-internal is provided.
327
332
let decode_internal = if let Some ( maybe_fn) = self . decode_internal . as_ref ( ) {
328
333
if maybe_fn. is_some ( ) {
You can’t perform that action at this time.
0 commit comments