Commit 13dae81
fix: increase JFR sampling frequency and make Workload exercise functions harder
- Set jdk.ExecutionSample#period=1ms (default was 10ms) so JFR captures
samples from shorter-running programs
- Workload.main now runs 1000 rounds with larger inputs so JFR can
capture method-level CPU samples (repeatString with O(n²) concat
dominates ~75% of samples)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 803fb64 commit 13dae81
2 files changed
Lines changed: 24 additions & 9 deletions
File tree
- codeflash/languages/java
- tests/test_languages/fixtures/java_tracer_e2e/src/main/java/com/example
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
43 | 55 | | |
44 | | - | |
45 | 56 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | | - | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
0 commit comments