mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
ZJIT: Change name format of zjit_exit_locations dump file
This commit is contained in:
parent
b78270a6c6
commit
4d0f53520c
Notes:
git
2025-10-07 22:15:25 +00:00
@ -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
|
||||
|
||||
2
zjit.rb
2
zjit.rb
@ -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}.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user