diff '--color=auto' -uNr node-v18.0.0.orig/deps/v8/src/logging/log.cc node-v18.0.0/deps/v8/src/logging/log.cc
--- node-v18.0.0.orig/deps/v8/src/logging/log.cc	2022-04-21 15:15:34.031869789 +0530
+++ node-v18.0.0/deps/v8/src/logging/log.cc	2022-04-21 15:44:33.497175145 +0530
@@ -308,7 +308,7 @@
   FILE* perf_output_handle_;
 };
 
-const char PerfBasicLogger::kFilenameFormatString[] = "/tmp/perf-%d.map";
+const char PerfBasicLogger::kFilenameFormatString[] = "@TERMUX_PREFIX@/tmp/perf-%d.map";
 // Extra space for the PID in the filename
 const int PerfBasicLogger::kFilenameBufferPadding = 16;
