Fix instrumentation when bytecode generation fails#5767
Merged
Conversation
If bytecode generation fails for any reason we should returns null for cancelling the current class transformation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 62 cases. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (986.42 ms) : 0, 986420
Total [baseline] (8.666 s) : 0, 8665969
Agent [candidate] (988.224 ms) : 0, 988224
Total [candidate] (8.64 s) : 0, 8640148
section appsec
Agent [baseline] (1.071 s) : 0, 1070643
Total [baseline] (8.751 s) : 0, 8751082
Agent [candidate] (1.074 s) : 0, 1074360
Total [candidate] (8.731 s) : 0, 8731160
section iast
Agent [baseline] (1.09 s) : 0, 1090180
Total [baseline] (9.171 s) : 0, 9171392
Agent [candidate] (1.098 s) : 0, 1097598
Total [candidate] (9.184 s) : 0, 9183788
section profiling
Agent [baseline] (1.168 s) : 0, 1168108
Total [baseline] (8.937 s) : 0, 8936689
Agent [candidate] (1.162 s) : 0, 1161607
Total [candidate] (8.879 s) : 0, 8878700
gantt
title insecure-bank - break down per module: candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (612.174 ms) : 0, 612174
BytebuddyAgent [candidate] (612.888 ms) : 0, 612888
GlobalTracer [baseline] (283.282 ms) : 0, 283282
GlobalTracer [candidate] (284.625 ms) : 0, 284625
AppSec [baseline] (50.033 ms) : 0, 50033
AppSec [candidate] (49.739 ms) : 0, 49739
Remote Config [baseline] (664.203 µs) : 0, 664
Remote Config [candidate] (665.873 µs) : 0, 666
Telemetry [baseline] (5.992 ms) : 0, 5992
Telemetry [candidate] (5.971 ms) : 0, 5971
section appsec
BytebuddyAgent [baseline] (611.94 ms) : 0, 611940
BytebuddyAgent [candidate] (613.59 ms) : 0, 613590
GlobalTracer [baseline] (283.456 ms) : 0, 283456
GlobalTracer [candidate] (285.418 ms) : 0, 285418
AppSec [baseline] (134.567 ms) : 0, 134567
AppSec [candidate] (134.588 ms) : 0, 134588
Remote Config [baseline] (719.151 µs) : 0, 719
Remote Config [candidate] (721.776 µs) : 0, 722
Telemetry [baseline] (5.743 ms) : 0, 5743
Telemetry [candidate] (5.749 ms) : 0, 5749
section iast
BytebuddyAgent [baseline] (718.219 ms) : 0, 718219
BytebuddyAgent [candidate] (723.057 ms) : 0, 723057
GlobalTracer [baseline] (270.314 ms) : 0, 270314
GlobalTracer [candidate] (272.526 ms) : 0, 272526
AppSec [baseline] (47.171 ms) : 0, 47171
AppSec [candidate] (47.407 ms) : 0, 47407
Remote Config [baseline] (557.853 µs) : 0, 558
Remote Config [candidate] (548.721 µs) : 0, 549
Telemetry [baseline] (5.786 ms) : 0, 5786
Telemetry [candidate] (5.716 ms) : 0, 5716
IAST [baseline] (13.856 ms) : 0, 13856
IAST [candidate] (13.916 ms) : 0, 13916
section profiling
BytebuddyAgent [baseline] (630.619 ms) : 0, 630619
BytebuddyAgent [candidate] (627.223 ms) : 0, 627223
GlobalTracer [baseline] (350.207 ms) : 0, 350207
GlobalTracer [candidate] (347.422 ms) : 0, 347422
AppSec [baseline] (49.808 ms) : 0, 49808
AppSec [candidate] (49.206 ms) : 0, 49206
Remote Config [baseline] (658.911 µs) : 0, 659
Remote Config [candidate] (645.934 µs) : 0, 646
Telemetry [baseline] (6.092 ms) : 0, 6092
Telemetry [candidate] (5.956 ms) : 0, 5956
ProfilingAgent [baseline] (77.447 ms) : 0, 77447
ProfilingAgent [candidate] (78.267 ms) : 0, 78267
Profiling [baseline] (77.471 ms) : 0, 77471
Profiling [candidate] (78.291 ms) : 0, 78291
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (986.903 ms) : 0, 986903
Total [baseline] (9.189 s) : 0, 9189220
Agent [candidate] (987.124 ms) : 0, 987124
Total [candidate] (9.214 s) : 0, 9213776
section appsec
Agent [baseline] (1.07 s) : 0, 1070110
Total [baseline] (9.292 s) : 0, 9291995
Agent [candidate] (1.076 s) : 0, 1076280
Total [candidate] (9.33 s) : 0, 9330150
section iast
Agent [baseline] (1.092 s) : 0, 1091560
Total [baseline] (9.433 s) : 0, 9433176
Agent [candidate] (1.09 s) : 0, 1090244
Total [candidate] (9.433 s) : 0, 9432922
section profiling
Agent [baseline] (1.166 s) : 0, 1165787
Total [baseline] (9.523 s) : 0, 9522808
Agent [candidate] (1.16 s) : 0, 1159649
Total [candidate] (9.48 s) : 0, 9480128
gantt
title petclinic - break down per module: candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (612.699 ms) : 0, 612699
BytebuddyAgent [candidate] (611.973 ms) : 0, 611973
GlobalTracer [baseline] (283.412 ms) : 0, 283412
GlobalTracer [candidate] (284.357 ms) : 0, 284357
AppSec [baseline] (49.986 ms) : 0, 49986
AppSec [candidate] (49.897 ms) : 0, 49897
Remote Config [baseline] (656.073 µs) : 0, 656
Remote Config [candidate] (675.393 µs) : 0, 675
Telemetry [baseline] (5.951 ms) : 0, 5951
Telemetry [candidate] (6.024 ms) : 0, 6024
section appsec
BytebuddyAgent [baseline] (610.989 ms) : 0, 610989
BytebuddyAgent [candidate] (613.647 ms) : 0, 613647
GlobalTracer [baseline] (283.792 ms) : 0, 283792
GlobalTracer [candidate] (286.458 ms) : 0, 286458
AppSec [baseline] (134.681 ms) : 0, 134681
AppSec [candidate] (135.487 ms) : 0, 135487
Remote Config [baseline] (721.502 µs) : 0, 722
Remote Config [candidate] (726.522 µs) : 0, 727
Telemetry [baseline] (5.71 ms) : 0, 5710
Telemetry [candidate] (5.76 ms) : 0, 5760
section iast
BytebuddyAgent [baseline] (719.083 ms) : 0, 719083
BytebuddyAgent [candidate] (717.905 ms) : 0, 717905
GlobalTracer [baseline] (270.748 ms) : 0, 270748
GlobalTracer [candidate] (271.089 ms) : 0, 271089
AppSec [baseline] (47.242 ms) : 0, 47242
AppSec [candidate] (47.046 ms) : 0, 47046
Remote Config [baseline] (560.273 µs) : 0, 560
Remote Config [candidate] (533.866 µs) : 0, 534
Telemetry [baseline] (5.762 ms) : 0, 5762
Telemetry [candidate] (5.623 ms) : 0, 5623
IAST [baseline] (13.861 ms) : 0, 13861
IAST [candidate] (13.748 ms) : 0, 13748
section profiling
BytebuddyAgent [baseline] (630.035 ms) : 0, 630035
BytebuddyAgent [candidate] (625.272 ms) : 0, 625272
GlobalTracer [baseline] (347.981 ms) : 0, 347981
GlobalTracer [candidate] (346.856 ms) : 0, 346856
AppSec [baseline] (49.462 ms) : 0, 49462
AppSec [candidate] (49.23 ms) : 0, 49230
Remote Config [baseline] (657.306 µs) : 0, 657
Remote Config [candidate] (643.768 µs) : 0, 644
Telemetry [baseline] (6.097 ms) : 0, 6097
Telemetry [candidate] (5.949 ms) : 0, 5949
ProfilingAgent [baseline] (78.151 ms) : 0, 78151
ProfilingAgent [candidate] (78.777 ms) : 0, 78777
Profiling [baseline] (78.176 ms) : 0, 78176
Profiling [candidate] (78.801 ms) : 0, 78801
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 24 cases. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section baseline
no_agent (365.356 µs) : 346, 385
. : milestone, 365,
appsec (667.193 µs) : 647, 688
. : milestone, 667,
iast (460.024 µs) : 439, 481
. : milestone, 460,
iast_FULL (522.714 µs) : 502, 543
. : milestone, 523,
iast_INACTIVE (435.212 µs) : 414, 456
. : milestone, 435,
profiling (437.234 µs) : 416, 458
. : milestone, 437,
tracing (432.209 µs) : 412, 453
. : milestone, 432,
section candidate
no_agent (365.5 µs) : 345, 386
. : milestone, 365,
appsec (666.737 µs) : 646, 688
. : milestone, 667,
iast (465.081 µs) : 444, 486
. : milestone, 465,
iast_FULL (528.812 µs) : 508, 550
. : milestone, 529,
iast_INACTIVE (441.193 µs) : 421, 462
. : milestone, 441,
profiling (445.723 µs) : 424, 467
. : milestone, 446,
tracing (435.921 µs) : 414, 457
. : milestone, 436,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.20.0-SNAPSHOT~29e598b1e7, baseline=1.20.0-SNAPSHOT~65849d8869
dateFormat X
axisFormat %s
section baseline
no_agent (1.333 ms) : 1315, 1352
. : milestone, 1333,
appsec (1.697 ms) : 1673, 1722
. : milestone, 1697,
iast (1.473 ms) : 1449, 1497
. : milestone, 1473,
profiling (1.47 ms) : 1445, 1495
. : milestone, 1470,
tracing (1.464 ms) : 1440, 1488
. : milestone, 1464,
section candidate
no_agent (1.342 ms) : 1323, 1362
. : milestone, 1342,
appsec (1.663 ms) : 1639, 1687
. : milestone, 1663,
iast (1.457 ms) : 1432, 1482
. : milestone, 1457,
profiling (1.467 ms) : 1439, 1494
. : milestone, 1467,
tracing (1.443 ms) : 1419, 1467
. : milestone, 1443,
|
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.
If bytecode generation fails for any reason we should returns null for cancelling the current class transformation
What Does This Do
Motivation
Additional Notes