forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
record startup timestamp in Android; pass it to Dart timeline (flutte…
- Loading branch information
Showing
6 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "sky/engine/core/start_up.h" | ||
|
||
namespace blink { | ||
|
||
int64_t engine_main_enter_ts = 0; | ||
|
||
} // namespace blink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2016 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef SKY_ENGINE_CORE_START_UP_H_ | ||
#define SKY_ENGINE_CORE_START_UP_H_ | ||
|
||
#include <stdint.h> | ||
|
||
namespace blink { | ||
|
||
// The earliest available timestamp in the application's lifecycle. The | ||
// difference between this timestamp and the time we render the very first | ||
// frame gives us a good idea about Flutter's startup time. | ||
// | ||
// This timestamp only covers Flutter's own startup. In an upside-down model | ||
// it is possible that the first Flutter view is not initialized until some | ||
// time later. In this case the timestamp may not cover the time spent in the | ||
// user code prior to initializing Flutter. | ||
extern int64_t engine_main_enter_ts; | ||
|
||
} // namespace blink | ||
|
||
#endif // SKY_ENGINE_CORE_START_UP_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters