Directory overrides for Profiling with +JPperf true
#9500
Labels
enhancement
help wanted
Issue not worked on by OTP; help wanted from the community
team:VM
Assigned to OTP team VM
Is your feature request related to a problem? Please describe.
When using
+JPperf true
two types of file are created in/tmp
. I would like to be able to place the files in a directory of my choice. The motivation is so that I can put them on a different mount from/tmp
.jit-<pid>.dump
otp/erts/emulator/beam/jit/beam_jit_metadata.cpp
Lines 328 to 333 in 4929103
perf-<pid>.map
otp/erts/emulator/beam/jit/beam_jit_metadata.cpp
Lines 469 to 475 in 4929103
You can already use
ERL_SYM_MAP_FILE
to override the map filename (not just the directory):Describe the solution you'd like
For both types of file, the ability to override the directory. Using the jit file as an example:
Describe alternatives you've considered
TMP
/TMPDIR
Additional context
Please let me know if you'd prefer to solve this another way, or if there's a preference/guidelines you follow with environment variable usage/naming. I am happy to test + PR this once the naming/suggestion is agreed. Thanks!
The text was updated successfully, but these errors were encountered: