summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/zjit.md4
-rw-r--r--zjit.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/zjit.md b/doc/zjit.md
index c0378031b2..d0d3e36191 100644
--- a/doc/zjit.md
+++ b/doc/zjit.md
@@ -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
diff --git a/zjit.rb b/zjit.rb
index fad6d7d807..9e1e502536 100644
--- a/zjit.rb
+++ b/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}.")