From e1533fdff6892aac734efda9ea488dd87c7ae938 Mon Sep 17 00:00:00 2001 From: Mike Armstrong Date: Fri, 27 Nov 2015 00:12:36 -0800 Subject: [PATCH] Move BridgeProfile call to give better systrace info Reviewed By: tadeuzagallo, sahrens Differential Revision: D2697510 fb-gh-sync-id: 00ec4d5835331b78c554c904dd29661dad9f6f97 --- Libraries/Utilities/MessageQueue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Utilities/MessageQueue.js b/Libraries/Utilities/MessageQueue.js index 8b336bd7e..faefc7827 100644 --- a/Libraries/Utilities/MessageQueue.js +++ b/Libraries/Utilities/MessageQueue.js @@ -146,12 +146,12 @@ class MessageQueue { } __callFunction(module, method, args) { - BridgeProfiling.profile(() => `${module}.${method}(${stringifySafe(args)})`); this._lastFlush = new Date().getTime(); if (isFinite(module)) { method = this._methodTable[module][method]; module = this._moduleTable[module]; } + BridgeProfiling.profile(() => `${module}.${method}(${stringifySafe(args)})`); if (__DEV__ && SPY_MODE) { console.log('N->JS : ' + module + '.' + method + '(' + JSON.stringify(args) + ')'); }