Skip to content

Commit cb0bab7

Browse files
committed
add "time since launch" to telemetry
1 parent 5a792db commit cb0bab7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

front_end/core/host/RNPerfMetrics.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ class RNPerfMetrics {
331331

332332
#decorateEvent(event: ReactNativeChromeDevToolsEvent): Readonly<DecoratedReactNativeChromeDevToolsEvent> {
333333
const commonFields: CommonEventFields = {
334+
timeSinceLaunch: performance.now(),
334335
timestamp: getPerfTimestamp(),
335336
launchId: this.#launchId,
336337
appId: this.#appId,
@@ -370,6 +371,7 @@ function maybeWrapError(baseMessage: string, error: unknown): [string, Error] {
370371
type EntryPoint = 'rn_fusebox'|'rn_inspector';
371372

372373
type CommonEventFields = Readonly<{
374+
timeSinceLaunch: DOMHighResTimeStamp,
373375
timestamp: DOMHighResTimeStamp,
374376
launchId: string | void | null,
375377
appId: string | void | null,

0 commit comments

Comments
 (0)