Skip to content

Commit

Permalink
Provide framework-only timing information (flutter#3699)
Browse files Browse the repository at this point in the history
This makes it easier to generate charts that show the engine time and
the framework time separately.
  • Loading branch information
Hixie committed May 3, 2016
1 parent 0006276 commit 4b6af7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/flutter_tools/lib/src/commands/run.dart
Expand Up @@ -416,6 +416,7 @@ Future<Null> _downloadStartupTrace(int observatoryPort, Device device) async {

if (frameworkInitTimestampMicros != null) {
traceInfo['timeToFrameworkInitMicros'] = frameworkInitTimestampMicros - engineEnterTimestampMicros;
traceInfo['timeAfterFrameworkInitMicros'] = timeToFirstFrameMicros - frameworkInitTimestampMicros;
}

await traceInfoFile.writeAsString(JSON.encode(traceInfo));
Expand Down

0 comments on commit 4b6af7a

Please sign in to comment.