mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Add connectStart in PerformanceResourceTiming
This commit is contained in:
parent
1409c767e4
commit
a11684460d
4 changed files with 17 additions and 3 deletions
|
@ -452,7 +452,7 @@ pub struct ResourceFetchTiming {
|
|||
pub response_end: u64,
|
||||
pub redirect_start: u64,
|
||||
// pub redirect_end: u64,
|
||||
// pub connect_start: u64,
|
||||
pub connect_start: u64,
|
||||
pub connect_end: u64,
|
||||
}
|
||||
|
||||
|
@ -468,6 +468,7 @@ pub enum ResourceAttribute {
|
|||
ResponseStart,
|
||||
RedirectStart(RedirectStartValue),
|
||||
FetchStart,
|
||||
ConnectStart(u64),
|
||||
ConnectEnd(u64),
|
||||
ResponseEnd,
|
||||
}
|
||||
|
@ -489,6 +490,7 @@ impl ResourceFetchTiming {
|
|||
response_start: 0,
|
||||
fetch_start: 0,
|
||||
redirect_start: 0,
|
||||
connect_start: 0,
|
||||
connect_end: 0,
|
||||
response_end: 0,
|
||||
}
|
||||
|
@ -510,6 +512,7 @@ impl ResourceFetchTiming {
|
|||
},
|
||||
},
|
||||
ResourceAttribute::FetchStart => self.fetch_start = precise_time_ns(),
|
||||
ResourceAttribute::ConnectStart(val) => self.connect_start = val,
|
||||
ResourceAttribute::ConnectEnd(val) => self.connect_end = val,
|
||||
ResourceAttribute::ResponseEnd => self.response_end = precise_time_ns(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue