Skip to content

Commit d140595

Browse files
feat: set env var to have node dump inlining information
1 parent 6446d3a commit d140595

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/executor/wall_time/profiler/samply

src/executor/wall_time/profiler/samply/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ impl Profiler for SamplyProfiler {
114114
),
115115
]);
116116

117+
// Directory where the profiled runtime drops its V8 code log (one
118+
// `codspeed-v8-<pid>.log` per process); samply reads them back per
119+
// jitdump pid to expand inlined frames. Both the writer (the runtime)
120+
// and the reader (samply) see this through the inherited environment.
121+
cmd_builder.env("CODSPEED_V8_LOG", profile_folder);
122+
117123
// Extra hardware events to capture alongside the sampling event,
118124
// stored by samply as per-sample delta columns in the profile, as
119125
// `<name>:<type>:<config>` specs resolved for the CPU we run on.

0 commit comments

Comments
 (0)