mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Add end point for initializecore
Summary: Instead of having a single point at the top of InitializeCore, let's just create a subspan for it. Initially I just wanted to use this point to track JS start time, but it'll be useful to see how long initializeCore takes, too. Reviewed By: alexeylang Differential Revision: D10521595 fbshipit-source-id: 3025c34ffab39b79efc966f0c0eb6f502c91c550
This commit is contained in:
committed by
Facebook Github Bot
parent
d743989dab
commit
9687090b5b
@@ -222,5 +222,6 @@ if (__DEV__) {
|
||||
|
||||
if (startTime != null) {
|
||||
const PerformanceLogger = require('PerformanceLogger');
|
||||
PerformanceLogger.markPoint('InitializeCoreStartTime', startTime);
|
||||
PerformanceLogger.markPoint('initializeCore_start', startTime);
|
||||
PerformanceLogger.markPoint('initializeCore_end');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user