Conversation
lvaroqui
force-pushed
the
cod-3722-ignore-process-spawning-overhead-in-exec-harness-simulation
branch
3 times, most recently
from
October 5, 2026 09:35
bceaeab to
cf65ec8
Compare
The valgrind instrument ignored the pid passed to set_executed_benchmark, so a dump made by a process that only launched the benchmark looked the same as one made by the process that ran it. When the pid differs from the calling process, add a "Benchmark pid: <pid>" desc line before the URI dump, through the new CALLGRIND_ADD_DESC client request. A benchmark run in the calling process gets no extra line. Valgrind builds without the request only log a warning and dump as before. Sync includes/callgrind.h with valgrind-codspeed and regenerate dist/core.c. Closes COD-3722 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lvaroqui
added a commit
that referenced
this pull request
Oct 5, 2026
lvaroqui
force-pushed
the
cod-3722-ignore-process-spawning-overhead-in-exec-harness-simulation
branch
from
October 5, 2026 09:42
cf65ec8 to
345c9d1
Compare
lvaroqui
marked this pull request as ready for review
October 5, 2026 09:44
|
not-matthias
approved these changes
Oct 5, 2026
lvaroqui
added a commit
that referenced
this pull request
Oct 5, 2026
lvaroqui
force-pushed
the
cod-3722-ignore-process-spawning-overhead-in-exec-harness-simulation
branch
from
October 5, 2026 10:24
345c9d1 to
b8bd763
Compare
lvaroqui
force-pushed
the
cod-3722-ignore-process-spawning-overhead-in-exec-harness-simulation
branch
from
October 5, 2026 10:25
b8bd763 to
bd2475c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make the valgrind instrument use the
pidargument ofset_executed_benchmark, which it ignored until now.When the pid differs from the calling process, the instrument registers a
Benchmark pid: <pid>desc line just before the URI dump. It does this through the newCALLGRIND_ADD_DESCrequest from CodSpeedHQ/valgrind-codspeed#43, so the line lands in that benchmark's part header:This lets a profile consumer tell a process that only launched the benchmark apart from the one that ran it. A launcher's own spawn-and-wait cost can then be left out.
The public API is unchanged. Benchmarks run in the calling process, which covers every integration today, get no extra line and no extra part. On a valgrind without the request, the call only logs a warning and the dump happens as before.
Notes for review:
dist/core.cis regenerated with Zig 0.14.1, the version that reproduces the current file byte-for-byte; the diff is mostly renumbered transpiler symbols.check-callgrind-headerfails until feat(callgrind): add CALLGRIND_ADD_DESC client request valgrind-codspeed#43 merges.Closes COD-3722