Log bundle size.

Reviewed By: javache

Differential Revision: D2564757

fb-gh-sync-id: c4429b735482ee6405b936e2dcdf610e9c6ad35f
This commit is contained in:
Alexey Lang
2015-10-21 10:53:35 -07:00
committed by facebook-github-bot-6
parent 394dfae868
commit 8ad09987e5
3 changed files with 14 additions and 1 deletions

View File

@@ -30,6 +30,12 @@ void RCTPerformanceLoggerEnd(RCTPLTag tag)
}
}
void RCTPerformanceLoggerSet(RCTPLTag tag, int64_t value)
{
RCTPLData[tag][0] = 0;
RCTPLData[tag][1] = value;
}
NSArray *RCTPerformanceLoggerOutput(void)
{
return @[
@@ -45,6 +51,8 @@ NSArray *RCTPerformanceLoggerOutput(void)
@(RCTPLData[RCTPLNativeModuleInjectConfig][1]),
@(RCTPLData[RCTPLTTI][0]),
@(RCTPLData[RCTPLTTI][1]),
@(RCTPLData[RCTPLBundleSize][0]),
@(RCTPLData[RCTPLBundleSize][1]),
];
}
@@ -87,6 +95,7 @@ RCT_EXPORT_MODULE()
@"NativeModulePrepareConfig",
@"NativeModuleInjectConfig",
@"TTI",
@"BundleSize",
],
]];
}