The current verison of NodeJS hardcodes the path where perf data is written when the --perf-basic-prof
flag is used.
https://github.com/v8/v8/blob/061c2ab23a1d4cd192b935e7912e7dfb1fed845d/src/log.cc#L236
At Pinterest, /tmp
has limited capacity and so we weren't able to utilize perf data to troubleshoot NodeJS without filling the disk and crashing the running system.
First I'll copy the system node binary to my local directory so this set of actions isn't destructive to the running system: