Here's what I see when I run my script:
$ node --perf-basic-prof index.js .
#
# Fatal error in , line 0
# Check failed: (perf_output_handle_) != nullptr.
#
#
#
#FailureMessage Object: 0x7fff8ac920
----- Native stack trace -----
Trap
I want to profile my nodejs project on android device via Termux, without this flag, simpleperf tool can only show jitted symbols. but I get this error when I run the code.
I tried to define TMPDIR and V8_PERF_BASIC_PROF_DIR, and add --perf-basic-prof-path (I am not sure any of those are a thing, I just followed what I searched online and what GPT tells me) to see if this is permission problem with Termux to access /tmp folder, but no luck.
My device is running:
- Termux 0.119.0-beta.3
- Android 16
- Node version on Termux is v22.20.0
- NPM version is 10.9.3