Send high resolution millisecond timestamps in timeline markers #5665

This commit is contained in:
Guro Bokum 2015-04-14 20:24:00 +07:00
parent bdcf606f48
commit 491851610e
3 changed files with 54 additions and 20 deletions

View file

@ -96,7 +96,7 @@ pub enum TracingMetadata {
pub struct TimelineMarker {
pub name: String,
pub metadata: TracingMetadata,
pub time: u64,
pub time: time::PreciseTime,
pub stack: Option<Vec<()>>,
}
@ -159,7 +159,7 @@ impl TimelineMarker {
TimelineMarker {
name: name,
metadata: metadata,
time: time::precise_time_ns(),
time: time::PreciseTime::now(),
stack: None,
}
}