Aggregated startup ms

Summary: ^

Reviewed By: antonk52

Differential Revision: D50012359

fbshipit-source-id: f71f57e1493e6f9f662e9af24a0f8d0ae1229b1b
This commit is contained in:
Lorenzo Blasa
2023-10-06 08:26:09 -07:00
committed by Facebook GitHub Bot
parent 4ff6fe3050
commit 66dac8112b
2 changed files with 4 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ type ServerBootstrapPerformancePayload = {
developmentServerAttachedMS: number;
serverStartedMS: number;
launchedMS: number;
startupMS: number;
};
type TrackerEvents = {

View File

@@ -275,6 +275,8 @@ async function start() {
)} (${serverStartedMS} ms)`,
);
const startupMS = t10 - t0;
tracker.track('server-bootstrap-performance', {
loggerInitializedMS,
keytarLoadedMS,
@@ -286,6 +288,7 @@ async function start() {
developmentServerAttachedMS,
serverStartedMS,
launchedMS,
startupMS,
});
}