mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
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:
committed by
facebook-github-bot-4
parent
0522db4dac
commit
010380cca6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user