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:
parent
0522db4dac
commit
010380cca6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue