Use nativeTrace(Begin|End)Section directly from BridgeProfiling

Summary: public

Call the native bindings explicitly from BridgeProfiling instead of polyfill'ing `console.profile` with
a function that has a different signature.

Reviewed By: vjeux

Differential Revision: D2602313

fb-gh-sync-id: 9295eff9458f2caa35b7e982c0f7c06dbe65fd09
This commit is contained in:
Tadeu Zagallo
2015-10-31 16:41:27 -07:00
committed by facebook-github-bot-5
parent 7ae39f83ac
commit d33e84dde5
2 changed files with 2 additions and 4 deletions

View File

@@ -159,8 +159,6 @@ function setUpWebSockets() {
}
function setUpProfile() {
console.profile = console.profile || GLOBAL.nativeTraceBeginSection || function () {};
console.profileEnd = console.profileEnd || GLOBAL.nativeTraceEndSection || function () {};
if (__DEV__) {
require('BridgeProfiling').swizzleReactPerf();
}