We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6d2fcf commit b6629caCopy full SHA for b6629ca
crates/vm/src/metrics/cycle_tracker/mod.rs
@@ -2,9 +2,9 @@
2
#[derive(Clone, Debug, Default)]
3
pub struct SpanInfo {
4
/// The name of the span.
5
- tag: String,
+ pub tag: String,
6
/// The cycle count at which the span starts.
7
- start: usize,
+ pub start: usize,
8
}
9
10
@@ -21,7 +21,10 @@ impl CycleTracker {
21
22
23
pub fn top(&self) -> Option<&String> {
24
- self.stack.last()
+ match self.stack.last() {
25
+ Some(span) => Some(&span.tag),
26
+ _ => None
27
+ }
28
29
30
/// Starts a new cycle tracker span for the given name.
0 commit comments