diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index e57462ec..7522309c 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -86,8 +86,6 @@ jobs: CODSPEED_WALLTIME_PROFILER: samply with: mode: walltime - # TODO: Remove this once runner is released - runner-version: v4.17.7-alpha.2 run: | pnpm turbo run bench --filter=@codspeed/tinybench-plugin pnpm turbo run bench --filter=@codspeed/vitest-plugin diff --git a/packages/core/src/introspection.ts b/packages/core/src/introspection.ts index 5bb232ec..3e862fd4 100644 --- a/packages/core/src/introspection.ts +++ b/packages/core/src/introspection.ts @@ -40,6 +40,7 @@ export const getV8Flags = () => { case "walltime": { // Emit the V8 jitdump flags.push("--perf-prof"); + const v8LogDir = process.env.CODSPEED_V8_LOG; if (v8LogDir) { flags.push( @@ -50,6 +51,9 @@ export const getV8Flags = () => { `--logfile=${path.join(v8LogDir, V8_LOG_FILENAME_PATTERN)}`, ], ); + } else { + // Just output the perf.map + flags.push("--perf-basic-prof"); } } }