Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/execution/src/inspector/call_tracer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ impl CallTracer {

/// Push a new call frame onto the stack.
fn push_frame(&mut self, frame: CallFrame) {
if self.config.only_top_call && self.depth > 0 {
self.depth += 1;
// When only_top_call is enabled, skip nested calls but still track depth
if self.config.only_top_call && self.depth > 1 {
return;
}
self.call_stack.push(frame);
self.depth += 1;
}

/// Pop a call frame from the stack and attach it to the parent.
Expand Down