mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add connectEnd attribute to PerformanceResourceTiming interface
This commit is contained in:
parent
9be40ac4b6
commit
f478357567
6 changed files with 18 additions and 16 deletions
|
@ -452,7 +452,7 @@ pub struct ResourceFetchTiming {
|
|||
pub redirect_start: u64,
|
||||
// pub redirect_end: u64,
|
||||
// pub connect_start: u64,
|
||||
// pub connect_end: u64,
|
||||
pub connect_end: u64,
|
||||
}
|
||||
|
||||
pub enum RedirectStartValue {
|
||||
|
@ -467,6 +467,7 @@ pub enum ResourceAttribute {
|
|||
ResponseStart,
|
||||
RedirectStart(RedirectStartValue),
|
||||
FetchStart,
|
||||
ConnectEnd(u64),
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, Deserialize, MallocSizeOf, PartialEq, Serialize)]
|
||||
|
@ -486,6 +487,7 @@ impl ResourceFetchTiming {
|
|||
response_start: 0,
|
||||
fetch_start: 0,
|
||||
redirect_start: 0,
|
||||
connect_end: 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -505,6 +507,7 @@ impl ResourceFetchTiming {
|
|||
},
|
||||
},
|
||||
ResourceAttribute::FetchStart => self.fetch_start = precise_time_ns(),
|
||||
ResourceAttribute::ConnectEnd(val) => self.connect_end = val,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue