Refactor the SmapEntry event generation#9215
Merged
Conversation
dd32001 to
d281e82
Compare
d281e82 to
7dc0593
Compare
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 12 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.06 s) : 0, 1059554
Total [baseline] (10.817 s) : 0, 10817396
Agent [candidate] (1.051 s) : 0, 1051113
Total [candidate] (10.765 s) : 0, 10764675
section appsec
Agent [baseline] (1.225 s) : 0, 1225375
Total [baseline] (10.864 s) : 0, 10863630
Agent [candidate] (1.217 s) : 0, 1217109
Total [candidate] (10.785 s) : 0, 10785254
section iast
Agent [baseline] (1.174 s) : 0, 1173552
Total [baseline] (10.894 s) : 0, 10893951
Agent [candidate] (1.181 s) : 0, 1181259
Total [candidate] (10.962 s) : 0, 10962204
section profiling
Agent [baseline] (1.195 s) : 0, 1194701
Total [baseline] (10.878 s) : 0, 10877931
Agent [candidate] (1.2 s) : 0, 1200360
Total [candidate] (10.943 s) : 0, 10942760
gantt
title petclinic - break down per module: candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.47 ms) : 0, 1470
crashtracking [candidate] (1.442 ms) : 0, 1442
BytebuddyAgent [baseline] (743.639 ms) : 0, 743639
BytebuddyAgent [candidate] (736.158 ms) : 0, 736158
GlobalTracer [baseline] (244.737 ms) : 0, 244737
GlobalTracer [candidate] (243.129 ms) : 0, 243129
AppSec [baseline] (30.901 ms) : 0, 30901
AppSec [candidate] (30.663 ms) : 0, 30663
Debugger [baseline] (6.051 ms) : 0, 6051
Debugger [candidate] (5.999 ms) : 0, 5999
Remote Config [baseline] (665.914 µs) : 0, 666
Remote Config [candidate] (660.082 µs) : 0, 660
Telemetry [baseline] (10.678 ms) : 0, 10678
Telemetry [candidate] (11.19 ms) : 0, 11190
section appsec
crashtracking [baseline] (1.434 ms) : 0, 1434
crashtracking [candidate] (1.432 ms) : 0, 1432
BytebuddyAgent [baseline] (756.058 ms) : 0, 756058
BytebuddyAgent [candidate] (750.921 ms) : 0, 750921
GlobalTracer [baseline] (235.895 ms) : 0, 235895
GlobalTracer [candidate] (234.509 ms) : 0, 234509
AppSec [baseline] (169.824 ms) : 0, 169824
AppSec [candidate] (170.219 ms) : 0, 170219
Debugger [baseline] (8.0 ms) : 0, 8000
Debugger [candidate] (6.362 ms) : 0, 6362
Remote Config [baseline] (648.794 µs) : 0, 649
Remote Config [candidate] (621.901 µs) : 0, 622
Telemetry [baseline] (8.412 ms) : 0, 8412
Telemetry [candidate] (8.246 ms) : 0, 8246
IAST [baseline] (23.764 ms) : 0, 23764
IAST [candidate] (23.515 ms) : 0, 23515
section iast
crashtracking [baseline] (1.428 ms) : 0, 1428
crashtracking [candidate] (1.44 ms) : 0, 1440
BytebuddyAgent [baseline] (846.828 ms) : 0, 846828
BytebuddyAgent [candidate] (853.683 ms) : 0, 853683
GlobalTracer [baseline] (233.258 ms) : 0, 233258
GlobalTracer [candidate] (232.377 ms) : 0, 232377
AppSec [baseline] (25.798 ms) : 0, 25798
AppSec [candidate] (29.58 ms) : 0, 29580
Debugger [baseline] (8.352 ms) : 0, 8352
Debugger [candidate] (5.684 ms) : 0, 5684
Remote Config [baseline] (588.77 µs) : 0, 589
Remote Config [candidate] (584.134 µs) : 0, 584
Telemetry [baseline] (8.093 ms) : 0, 8093
Telemetry [candidate] (8.172 ms) : 0, 8172
IAST [baseline] (28.179 ms) : 0, 28179
IAST [candidate] (28.623 ms) : 0, 28623
section profiling
ProfilingAgent [baseline] (110.455 ms) : 0, 110455
ProfilingAgent [candidate] (109.017 ms) : 0, 109017
crashtracking [baseline] (1.409 ms) : 0, 1409
crashtracking [candidate] (1.413 ms) : 0, 1413
BytebuddyAgent [baseline] (760.697 ms) : 0, 760697
BytebuddyAgent [candidate] (765.093 ms) : 0, 765093
GlobalTracer [baseline] (221.289 ms) : 0, 221289
GlobalTracer [candidate] (222.233 ms) : 0, 222233
AppSec [baseline] (30.27 ms) : 0, 30270
AppSec [candidate] (30.574 ms) : 0, 30574
Debugger [baseline] (6.214 ms) : 0, 6214
Debugger [candidate] (6.277 ms) : 0, 6277
Remote Config [baseline] (678.551 µs) : 0, 679
Remote Config [candidate] (709.742 µs) : 0, 710
Telemetry [baseline] (15.07 ms) : 0, 15070
Telemetry [candidate] (16.115 ms) : 0, 16115
Profiling [baseline] (110.479 ms) : 0, 110479
Profiling [candidate] (109.042 ms) : 0, 109042
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.042 s) : 0, 1042432
Total [baseline] (8.616 s) : 0, 8616343
Agent [candidate] (1.051 s) : 0, 1051494
Total [candidate] (8.623 s) : 0, 8623066
section iast
Agent [baseline] (1.179 s) : 0, 1178836
Total [baseline] (9.336 s) : 0, 9335918
Agent [candidate] (1.182 s) : 0, 1182161
Total [candidate] (9.274 s) : 0, 9274361
gantt
title insecure-bank - break down per module: candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.436 ms) : 0, 1436
crashtracking [candidate] (1.437 ms) : 0, 1437
BytebuddyAgent [baseline] (729.211 ms) : 0, 729211
BytebuddyAgent [candidate] (735.815 ms) : 0, 735815
GlobalTracer [baseline] (241.281 ms) : 0, 241281
GlobalTracer [candidate] (243.108 ms) : 0, 243108
AppSec [baseline] (30.307 ms) : 0, 30307
AppSec [candidate] (30.718 ms) : 0, 30718
Debugger [baseline] (5.981 ms) : 0, 5981
Debugger [candidate] (6.025 ms) : 0, 6025
Remote Config [baseline] (650.431 µs) : 0, 650
Remote Config [candidate] (671.549 µs) : 0, 672
Telemetry [baseline] (12.613 ms) : 0, 12613
Telemetry [candidate] (12.668 ms) : 0, 12668
section iast
crashtracking [baseline] (1.421 ms) : 0, 1421
crashtracking [candidate] (1.441 ms) : 0, 1441
BytebuddyAgent [baseline] (851.242 ms) : 0, 851242
BytebuddyAgent [candidate] (854.72 ms) : 0, 854720
GlobalTracer [baseline] (232.167 ms) : 0, 232167
GlobalTracer [candidate] (232.673 ms) : 0, 232673
AppSec [baseline] (26.697 ms) : 0, 26697
AppSec [candidate] (27.246 ms) : 0, 27246
Debugger [baseline] (8.451 ms) : 0, 8451
Debugger [candidate] (5.731 ms) : 0, 5731
Remote Config [baseline] (599.718 µs) : 0, 600
Remote Config [candidate] (589.045 µs) : 0, 589
Telemetry [baseline] (8.108 ms) : 0, 8108
Telemetry [candidate] (8.128 ms) : 0, 8128
IAST [baseline] (29.203 ms) : 0, 29203
IAST [candidate] (30.581 ms) : 0, 30581
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 2 performance regressions! Performance is the same for 10 metrics, 12 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section baseline
no_agent (37.141 ms) : 36835, 37448
. : milestone, 37141,
appsec (48.449 ms) : 48014, 48883
. : milestone, 48449,
code_origins (44.452 ms) : 44072, 44831
. : milestone, 44452,
iast (46.12 ms) : 45732, 46507
. : milestone, 46120,
profiling (49.847 ms) : 49394, 50300
. : milestone, 49847,
tracing (42.146 ms) : 41794, 42499
. : milestone, 42146,
section candidate
no_agent (37.324 ms) : 37018, 37630
. : milestone, 37324,
appsec (47.219 ms) : 46807, 47630
. : milestone, 47219,
code_origins (45.595 ms) : 45204, 45987
. : milestone, 45595,
iast (45.679 ms) : 45287, 46070
. : milestone, 45679,
profiling (48.37 ms) : 47927, 48812
. : milestone, 48370,
tracing (44.48 ms) : 44084, 44876
. : milestone, 44480,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section baseline
no_agent (4.343 ms) : 4287, 4399
. : milestone, 4343,
iast (9.145 ms) : 8997, 9293
. : milestone, 9145,
iast_FULL (13.951 ms) : 13675, 14228
. : milestone, 13951,
iast_GLOBAL (9.928 ms) : 9753, 10102
. : milestone, 9928,
profiling (8.658 ms) : 8516, 8800
. : milestone, 8658,
tracing (7.506 ms) : 7393, 7619
. : milestone, 7506,
section candidate
no_agent (4.396 ms) : 4346, 4445
. : milestone, 4396,
iast (9.149 ms) : 9000, 9298
. : milestone, 9149,
iast_FULL (14.006 ms) : 13723, 14288
. : milestone, 14006,
iast_GLOBAL (10.357 ms) : 10174, 10541
. : milestone, 10357,
profiling (8.836 ms) : 8699, 8973
. : milestone, 8836,
tracing (7.441 ms) : 7338, 7545
. : milestone, 7441,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section baseline
no_agent (15.398 s) : 15398000, 15398000
. : milestone, 15398000,
appsec (14.822 s) : 14822000, 14822000
. : milestone, 14822000,
iast (18.171 s) : 18171000, 18171000
. : milestone, 18171000,
iast_GLOBAL (18.164 s) : 18164000, 18164000
. : milestone, 18164000,
profiling (15.318 s) : 15318000, 15318000
. : milestone, 15318000,
tracing (15.073 s) : 15073000, 15073000
. : milestone, 15073000,
section candidate
no_agent (15.003 s) : 15003000, 15003000
. : milestone, 15003000,
appsec (14.716 s) : 14716000, 14716000
. : milestone, 14716000,
iast (18.698 s) : 18698000, 18698000
. : milestone, 18698000,
iast_GLOBAL (17.719 s) : 17719000, 17719000
. : milestone, 17719000,
profiling (15.345 s) : 15345000, 15345000
. : milestone, 15345000,
tracing (15.241 s) : 15241000, 15241000
. : milestone, 15241000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.51.1-SNAPSHOT~5814a9b94d, baseline=1.51.1-SNAPSHOT~37a4462bcf
dateFormat X
axisFormat %s
section baseline
no_agent (1.467 ms) : 1456, 1478
. : milestone, 1467,
appsec (2.452 ms) : 2399, 2505
. : milestone, 2452,
iast (2.183 ms) : 2121, 2246
. : milestone, 2183,
iast_GLOBAL (2.22 ms) : 2157, 2282
. : milestone, 2220,
profiling (2.017 ms) : 1968, 2067
. : milestone, 2017,
tracing (1.989 ms) : 1940, 2037
. : milestone, 1989,
section candidate
no_agent (1.466 ms) : 1455, 1478
. : milestone, 1466,
appsec (3.601 ms) : 3385, 3816
. : milestone, 3601,
iast (2.18 ms) : 2117, 2243
. : milestone, 2180,
iast_GLOBAL (2.221 ms) : 2159, 2284
. : milestone, 2221,
profiling (2.043 ms) : 1992, 2094
. : milestone, 2043,
tracing (2.0 ms) : 1951, 2048
. : milestone, 2000,
|
zhengyu123
approved these changes
Jul 22, 2025
Contributor
zhengyu123
left a comment
There was a problem hiding this comment.
Just a nit. Otherwise, LGTM
7dc0593 to
9fc47f8
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.
What Does This Do
It is refactoring the Smap event generation code.
Motivation
The smap events were generated unreliably. Actually, because of a bug in the registration they even should not be generated but because this functionality is disabled by default we haven't even noticed.
The change is clearing up the code hierarchy and adds some more sanity tests that should capture an accidental breakage in the future.
Additional Notes
While working on this I also realized that the format of the JVM annotated map output had changed between Java 23 and 24 so I updated the implementation to correctly work with the updated format as well.
Contributor Checklist
type:and (comp:orinst:) labels in addition to any usefull labelsclose,fixor any linking keywords when referencing an issue.Use
solvesinstead, and assign the PR milestone to the issueJira ticket: PROF-12168