Skip to content

Commit

Permalink
feat: Allow querying the number of frames on the stack in the debug api
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jan 22, 2017
1 parent 6ba5b44 commit a012274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vm/src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,10 @@ impl<'a> DebugInfo<'a> {
None
}
}

pub fn stack_info_len(&self) -> usize {
self.stack.get_frames().len()
}
}

impl<'a> StackInfo<'a> {
Expand Down

0 comments on commit a012274

Please sign in to comment.