diff --git a/React/Profiler/RCTProfile.m b/React/Profiler/RCTProfile.m index 80e301fb8..04d70d8b2 100644 --- a/React/Profiler/RCTProfile.m +++ b/React/Profiler/RCTProfile.m @@ -520,7 +520,7 @@ void _RCTProfileEndFlowEvent(NSNumber *flowID) void RCTProfileSendResult(RCTBridge *bridge, NSString *route, NSData *data) { if (![bridge.bundleURL.scheme hasPrefix:@"http"]) { - RCTLogError(@"Cannot update profile information"); + RCTLogError(@"Cannot upload profile information"); return; } diff --git a/local-cli/server/middleware/cpuProfilerMiddleware.js b/local-cli/server/middleware/cpuProfilerMiddleware.js index 2e31cc506..502e1554a 100644 --- a/local-cli/server/middleware/cpuProfilerMiddleware.js +++ b/local-cli/server/middleware/cpuProfilerMiddleware.js @@ -24,13 +24,14 @@ module.exports = function(req, res, next) { var cmdPath = path.join( __dirname, - '../react-native-github/JSCLegacyProfiler/json2trace' + '../../../JSCLegacyProfiler/json2trace' ); execFile( cmdPath, [ '-cpuprofiler', - dumpName + '.cpuprofile ' + dumpName + '.json' + dumpName + '.cpuprofile', + dumpName + '.json', ], function(error) { if (error) {