Fix CPU profiler upload

Summary: public

Changes were made on the packager that broke the CPU profile upload route,
fix it.

Reviewed By: martinbigio

Differential Revision: D2585184

fb-gh-sync-id: 206744f92d403d6851a69891dfac0c4c11bf1b7e
This commit is contained in:
Tadeu Zagallo 2015-10-30 14:40:48 -07:00 committed by facebook-github-bot-4
parent 0522db4dac
commit 010380cca6
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) {