Replace RCT_DEV with RCT_PROFILE

Reviewed By: javache

Differential Revision: D3462735

fbshipit-source-id: 44513a9540b3111e036c4b14e0fda2d34b43cdf6
This commit is contained in:
Alexey Lang
2016-06-21 12:02:31 -07:00
committed by Facebook Github Bot 1
parent 7eadd8c408
commit b36eaeda5d
2 changed files with 13 additions and 11 deletions

View File

@@ -151,8 +151,10 @@ class MessageQueue {
this._callbacks[this._callbackID++] = onSucc;
}
global.nativeTraceBeginAsyncFlow &&
global.nativeTraceBeginAsyncFlow(TRACE_TAG_REACT_APPS, 'native', this._callID);
if (__DEV__) {
global.nativeTraceBeginAsyncFlow &&
global.nativeTraceBeginAsyncFlow(TRACE_TAG_REACT_APPS, 'native', this._callID);
}
this._callID++;
this._queue[MODULE_IDS].push(module);