Skip to content

Commit

Permalink
Add initial_build annotation to Resolving and Transforming Dependencies
Browse files Browse the repository at this point in the history
Reviewed By: jacdebug

Differential Revision: D42959666

fbshipit-source-id: 32c8efa97673b64164858ef1d7b44f596b496703
  • Loading branch information
blakef authored and facebook-github-bot committed Feb 2, 2023
1 parent 0332ed5 commit fc83b52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/metro/src/Server.js
Expand Up @@ -832,6 +832,11 @@ class Server {
const revPromise = this._bundler.getRevisionByGraphId(graphId);

bundlePerfLogger.point('resolvingAndTransformingDependencies_start');
bundlePerfLogger.annotate({
bool: {
initial_build: revPromise == null,
},
});
const {delta, revision} = await (revPromise != null
? this._bundler.updateGraph(await revPromise, false)
: this._bundler.initializeGraph(
Expand Down

0 comments on commit fc83b52

Please sign in to comment.