Skip to content

Commit b03f519

Browse files
committed
Retain platform-specific timestamp field that are being added in bug 1961012.
1 parent 8b83c7a commit b03f519

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/profile-logic/process-profile.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,12 @@ export function processGeckoProfile(geckoProfile: GeckoProfile): Profile {
16971697
const meta: ProfileMeta = {
16981698
interval: geckoProfile.meta.interval,
16991699
startTime: geckoProfile.meta.startTime,
1700+
startTimeAsClockMonotonicNanosecondsSinceBoot:
1701+
geckoProfile.meta.startTimeAsClockMonotonicNanosecondsSinceBoot,
1702+
startTimeAsMachAbsoluteTimeNanoseconds:
1703+
geckoProfile.meta.startTimeAsMachAbsoluteTimeNanoseconds,
1704+
startTimeAsQueryPerformanceCounterValue:
1705+
geckoProfile.meta.startTimeAsQueryPerformanceCounterValue,
17001706
abi: geckoProfile.meta.abi,
17011707
extensions: extensions,
17021708
misc: geckoProfile.meta.misc,

src/types/gecko-profile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ export type GeckoProfileShortMeta = {|
405405
// When the main process started. Timestamp expressed in milliseconds since
406406
// midnight January 1, 1970 GMT.
407407
startTime: Milliseconds,
408+
startTimeAsClockMonotonicNanosecondsSinceBoot?: number,
409+
startTimeAsMachAbsoluteTimeNanoseconds?: number,
410+
startTimeAsQueryPerformanceCounterValue?: number,
408411
shutdownTime: Milliseconds | null,
409412
categories: CategoryList,
410413
markerSchema: GeckoMetaMarkerSchema[],

src/types/profile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ export type ProfileMeta = {|
768768
// When the main process started. Timestamp expressed in milliseconds since
769769
// midnight January 1, 1970 GMT.
770770
startTime: Milliseconds,
771+
startTimeAsClockMonotonicNanosecondsSinceBoot?: number,
772+
startTimeAsMachAbsoluteTimeNanoseconds?: number,
773+
startTimeAsQueryPerformanceCounterValue?: number,
771774
// The number of milliseconds since midnight January 1, 1970 GMT.
772775
endTime?: Milliseconds,
773776
// When the recording started (in milliseconds after startTime).

0 commit comments

Comments
 (0)