Skip to content

Commit f23392b

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

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-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/test/unit/__snapshots__/profile-conversion.test.js.snap

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,9 @@ Object {
563563
"sourceURL": undefined,
564564
"stackwalk": 1,
565565
"startTime": 0,
566+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
567+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
568+
"startTimeAsQueryPerformanceCounterValue": undefined,
566569
"symbolicated": true,
567570
"toolkit": undefined,
568571
"updateChannel": undefined,
@@ -86311,6 +86314,9 @@ Object {
8631186314
"sourceURL": undefined,
8631286315
"stackwalk": 1,
8631386316
"startTime": 0,
86317+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
86318+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
86319+
"startTimeAsQueryPerformanceCounterValue": undefined,
8631486320
"symbolicated": true,
8631586321
"toolkit": undefined,
8631686322
"updateChannel": undefined,
@@ -444374,6 +444380,9 @@ Object {
444374444380
"sourceURL": undefined,
444375444381
"stackwalk": 1,
444376444382
"startTime": 2574592839.818,
444383+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
444384+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
444385+
"startTimeAsQueryPerformanceCounterValue": undefined,
444377444386
"symbolicated": true,
444378444387
"toolkit": undefined,
444379444388
"updateChannel": undefined,
@@ -450634,6 +450643,9 @@ Object {
450634450643
"sourceURL": undefined,
450635450644
"stackwalk": 1,
450636450645
"startTime": 2782992.2430000002,
450646+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
450647+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
450648+
"startTimeAsQueryPerformanceCounterValue": undefined,
450637450649
"symbolicated": true,
450638450650
"toolkit": undefined,
450639450651
"updateChannel": undefined,
@@ -465519,6 +465531,9 @@ Object {
465519465531
"sourceURL": undefined,
465520465532
"stackwalk": 1,
465521465533
"startTime": 36556170.907,
465534+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
465535+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
465536+
"startTimeAsQueryPerformanceCounterValue": undefined,
465522465537
"symbolicated": true,
465523465538
"toolkit": undefined,
465524465539
"updateChannel": undefined,
@@ -471713,6 +471728,9 @@ Object {
471713471728
"sourceURL": undefined,
471714471729
"stackwalk": 1,
471715471730
"startTime": 115539936.601,
471731+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
471732+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
471733+
"startTimeAsQueryPerformanceCounterValue": undefined,
471716471734
"symbolicated": true,
471717471735
"toolkit": undefined,
471718471736
"updateChannel": undefined,

src/test/unit/__snapshots__/profile-upgrading.test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ Object {
4747
"sourceURL": undefined,
4848
"stackwalk": 1,
4949
"startTime": 2574592839.818,
50+
"startTimeAsClockMonotonicNanosecondsSinceBoot": undefined,
51+
"startTimeAsMachAbsoluteTimeNanoseconds": undefined,
52+
"startTimeAsQueryPerformanceCounterValue": undefined,
5053
"symbolicated": true,
5154
"toolkit": undefined,
5255
"updateChannel": undefined,

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)