Skip to content

feat: support perf walltime in Java#261

Open
not-matthias wants to merge 4 commits intomainfrom
cod-2309-walltime-benchmarks-with-flamegraphs
Open

feat: support perf walltime in Java#261
not-matthias wants to merge 4 commits intomainfrom
cod-2309-walltime-benchmarks-with-flamegraphs

Conversation

@not-matthias
Copy link
Member

No description provided.

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 9, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing cod-2309-walltime-benchmarks-with-flamegraphs (710141a) with main (aa418e6)

Open in CodSpeed

@not-matthias not-matthias force-pushed the cod-2309-walltime-benchmarks-with-flamegraphs branch from 1e412cf to cf6217a Compare March 11, 2026 17:56
@not-matthias not-matthias marked this pull request as ready for review March 11, 2026 17:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Java support for perf-based walltime profiling by configuring JVM frame pointers and perf map generation, auto-detecting Java commands for frame-pointer unwinding, and fixing env variable quoting for values with spaces.

Changes:

  • Set JAVA_TOOL_OPTIONS with JVM flags for frame pointer preservation and perf map generation in walltime mode
  • Auto-select frame-pointer unwinding for gradle/java/maven commands in perf runner
  • Quote environment variable values in the env file to handle spaces, and add /proc/pid/maps debug logging

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/executor/helpers/env.rs Adds JAVA_TOOL_OPTIONS env var for walltime mode
src/executor/wall_time/perf/mod.rs Auto-detect Java commands for FP unwinding; add debug proc maps logging
src/executor/helpers/run_with_env.rs Quote env values with single quotes in generated env file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@not-matthias not-matthias force-pushed the cod-2309-walltime-benchmarks-with-flamegraphs branch from cf6217a to 56be8b1 Compare March 12, 2026 19:05
Print the benchmark process memory map when CODSPEED_DEBUG is enabled.
This helps with debugging missing symbols by showing which modules are
loaded at which addresses.
@not-matthias not-matthias force-pushed the cod-2309-walltime-benchmarks-with-flamegraphs branch from 56be8b1 to 710141a Compare March 12, 2026 19:08
@art049 art049 force-pushed the main branch 5 times, most recently from 398ac58 to 7cd7a64 Compare March 12, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants