Open aabmass opened 5 months ago
OK one way to make the system test pass for CPU profiling is to add a noop in the inner loop: https://github.com/google/pprof-nodejs/pull/284
This leads me to think the issue is with V8 CpuProfiler or there is some optimization affecting the profile. In any event, it's probably not our fault. I also tried with various other node v21.* minor versions with the same effect.
Specifically seeing this issue with Node v21.6.1. What's happening is the output off pprof is missing function name (it just says "anonymous"):
compare the the Node 20 version which has the function name
busyLoop
:I'm not sure why, but its probably related to the V8 version used in Node 21. Some ideas I think it might be
Originally from https://github.com/google/pprof-nodejs/issues/281