mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Send high resolution millisecond timestamps in timeline markers #5665
This commit is contained in:
parent
bdcf606f48
commit
491851610e
3 changed files with 54 additions and 20 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue