margelo / react-native-release-profiler Goto Github PK
View Code? Open in Web Editor NEWA fast and simple library to passively profile JS/Hermes performance in production and release builds.
Home Page: https://margelo.io
License: MIT License
A fast and simple library to passively profile JS/Hermes performance in production and release builds.
Home Page: https://margelo.io
License: MIT License
Overview
Attempting to download and process the performance trace for a profiling session on iOS fails with the following output:
$ npx react-native-release-profiler --local /var/mobile/Containers/Data/Application/8BF1D060-684F-465A-820B-EE574FC6D99E/Library/Caches/profile-273CE684-52C0-416B-B6FB-BA67E9109D1C-7548-0000058188A57F98.cpuprofile
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error: Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location.".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.17.0
Based on the error trace above, it appears that this is an internal error? The expected behavior here would be that no android files are required when using profiling on iOS only.
Reproduction steps:
npx react-native-release-profiler --local <path to profile>
with the profile path substitutedDependencies:
"dependencies": {
"expo": "^50.0.6",
"react": "18.2.0",
"react-native": "0.73.2",
"react-native-release-profiler": "^0.1.6",
...
}
Context:
iOS 17.3
iPhone 14 pro max
npx version 10.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.