ZJIT: Change name format of zjit_exit_locations dump file

This commit is contained in:
Aiden Fox Ivey 2025-10-07 10:56:29 -04:00 committed by Takashi Kokubun
parent b78270a6c6
commit 4d0f53520c
Notes: git 2025-10-07 22:15:25 +00:00
2 changed files with 3 additions and 3 deletions

View File

@ -150,10 +150,10 @@ Through [Stackprof](https://github.com/tmm1/stackprof), detailed information abo
./miniruby --zjit-trace-exits script.rb
```
A file called `zjit_exit_locations{timestamp}.dump` will be created in the same directory as `script.rb`. Viewing the side exited methods can be done with Stackprof:
A file called `zjit_exits_{pid}.dump` will be created in the same directory as `script.rb`. Viewing the side exited methods can be done with Stackprof:
```bash
stackprof path/to/zjit_exit_locations{timestamp}.dump
stackprof path/to/zjit_exits_{pid}.dump
```
## Useful dev commands

View File

@ -277,7 +277,7 @@ class << RubyVM::ZJIT
def dump_locations # :nodoc:
return unless trace_exit_locations_enabled?
filename = "zjit_exits_#{Time.now.to_i}.dump"
filename = "zjit_exits_#{Process.pid}.dump"
n_bytes = dump_exit_locations(filename)
$stderr.puts("#{n_bytes} bytes written to #{filename}.")