You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Used to transform hermes profiler outputs to supported by chrome dev tools. * https://github.com/react-native-community/hermes-profile-transformer */consttransformer=require('hermes-profile-transformer').defaultconst{ writeFileSync }=require('fs')consthermesCpuProfilePath='sampling-profiler-trace3882871943179202698.cpuprofile'transformer(// profile path is requiredhermesCpuProfilePath// source maps are optional// sourceMap,// sourceMapBundleFileName).then((events)=>{// write converted trace to a filereturnwriteFileSync('./chrome-supported.json',JSON.stringify(events,null,2),'utf-8')}).catch((err)=>{console.log(err)})
The text was updated successfully, but these errors were encountered:
Reproduce steps:
Input: sampling-profiler-trace3882871943179202698.cpuprofile
Output (unzip): chrome-supported.json.zip
Transform script:
The text was updated successfully, but these errors were encountered: