-
Notifications
You must be signed in to change notification settings - Fork 312
Introduce id-based line probe source matching #8275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
line probe in unit tests are created by searching probe id (UUID) inside the targeted source file. uuid are added as comment on the line we want to put a line probe. Add helper method to search a uuid inside the targeted source file and returns the line number used to create the line probe
Debugger benchmarksParameters
See matching parameters
SummaryFound 6 performance improvements and 0 performance regressions! Performance is the same for 2 metrics, 7 unstable metrics.
See unchanged results
Request duration reports for reportsgantt
title reports - request duration [CI 0.99] : candidate=None, baseline=None
dateFormat X
axisFormat %s
section baseline
noprobe (330.064 µs) : 269, 391
. : milestone, 330,
basic (327.436 µs) : 316, 338
. : milestone, 327,
loop (10.401 ms) : 10337, 10465
. : milestone, 10401,
section candidate
noprobe (304.152 µs) : 281, 327
. : milestone, 304,
basic (302.397 µs) : 294, 311
. : milestone, 302,
loop (10.152 ms) : 10116, 10188
. : milestone, 10152,
|
BenchmarksStartupParameters
See matching parameters
SummaryFound 1 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 4 unstable metrics.
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.052 s) : 0, 1051549
Total [baseline] (10.525 s) : 0, 10525347
Agent [candidate] (1.04 s) : 0, 1039665
Total [candidate] (10.51 s) : 0, 10510366
section appsec
Agent [baseline] (1.183 s) : 0, 1183305
Total [baseline] (10.799 s) : 0, 10798814
Agent [candidate] (1.184 s) : 0, 1183751
Total [candidate] (10.756 s) : 0, 10755798
section iast
Agent [baseline] (1.166 s) : 0, 1166136
Total [baseline] (10.92 s) : 0, 10919995
Agent [candidate] (1.166 s) : 0, 1165763
Total [candidate] (10.991 s) : 0, 10990590
section profiling
Agent [baseline] (1.259 s) : 0, 1259175
Total [baseline] (10.95 s) : 0, 10949560
Agent [candidate] (1.253 s) : 0, 1252517
Total [candidate] (10.776 s) : 0, 10775890
gantt
title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (724.402 ms) : 0, 724402
BytebuddyAgent [candidate] (715.278 ms) : 0, 715278
GlobalTracer [baseline] (241.199 ms) : 0, 241199
GlobalTracer [candidate] (239.737 ms) : 0, 239737
AppSec [baseline] (55.487 ms) : 0, 55487
AppSec [candidate] (56.604 ms) : 0, 56604
Remote Config [baseline] (712.598 µs) : 0, 713
Remote Config [candidate] (717.639 µs) : 0, 718
Telemetry [baseline] (14.526 ms) : 0, 14526
Telemetry [candidate] (12.272 ms) : 0, 12272
section appsec
BytebuddyAgent [baseline] (735.16 ms) : 0, 735160
BytebuddyAgent [candidate] (737.098 ms) : 0, 737098
GlobalTracer [baseline] (237.707 ms) : 0, 237707
GlobalTracer [candidate] (236.61 ms) : 0, 236610
AppSec [baseline] (176.407 ms) : 0, 176407
AppSec [candidate] (176.026 ms) : 0, 176026
Remote Config [baseline] (665.841 µs) : 0, 666
Remote Config [candidate] (666.388 µs) : 0, 666
Telemetry [baseline] (8.196 ms) : 0, 8196
Telemetry [candidate] (8.552 ms) : 0, 8552
IAST [baseline] (20.197 ms) : 0, 20197
IAST [candidate] (19.433 ms) : 0, 19433
section iast
BytebuddyAgent [baseline] (832.606 ms) : 0, 832606
BytebuddyAgent [candidate] (832.17 ms) : 0, 832170
GlobalTracer [baseline] (229.625 ms) : 0, 229625
GlobalTracer [candidate] (229.326 ms) : 0, 229326
AppSec [baseline] (58.235 ms) : 0, 58235
AppSec [candidate] (58.533 ms) : 0, 58533
Remote Config [baseline] (643.447 µs) : 0, 643
Remote Config [candidate] (644.219 µs) : 0, 644
Telemetry [baseline] (8.691 ms) : 0, 8691
Telemetry [candidate] (8.8 ms) : 0, 8800
IAST [baseline] (21.275 ms) : 0, 21275
IAST [candidate] (21.274 ms) : 0, 21274
section profiling
BytebuddyAgent [baseline] (707.788 ms) : 0, 707788
BytebuddyAgent [candidate] (703.412 ms) : 0, 703412
GlobalTracer [baseline] (349.289 ms) : 0, 349289
GlobalTracer [candidate] (348.253 ms) : 0, 348253
AppSec [baseline] (55.119 ms) : 0, 55119
AppSec [candidate] (54.029 ms) : 0, 54029
Remote Config [baseline] (700.735 µs) : 0, 701
Remote Config [candidate] (709.701 µs) : 0, 710
Telemetry [baseline] (8.724 ms) : 0, 8724
Telemetry [candidate] (8.817 ms) : 0, 8817
ProfilingAgent [baseline] (95.329 ms) : 0, 95329
ProfilingAgent [candidate] (95.353 ms) : 0, 95353
Profiling [baseline] (95.356 ms) : 0, 95356
Profiling [candidate] (95.379 ms) : 0, 95379
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.038 s) : 0, 1038114
Total [baseline] (8.644 s) : 0, 8644036
Agent [candidate] (1.054 s) : 0, 1053990
Total [candidate] (8.678 s) : 0, 8678260
section iast
Agent [baseline] (1.165 s) : 0, 1165402
Total [baseline] (9.207 s) : 0, 9206527
Agent [candidate] (1.166 s) : 0, 1165638
Total [candidate] (9.201 s) : 0, 9201478
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.166 s) : 0, 1166286
Total [baseline] (9.175 s) : 0, 9174935
Agent [candidate] (1.174 s) : 0, 1173843
Total [candidate] (9.185 s) : 0, 9184722
section iast_TELEMETRY_OFF
Agent [baseline] (1.163 s) : 0, 1163321
Total [baseline] (9.24 s) : 0, 9239563
Agent [candidate] (1.163 s) : 0, 1162698
Total [candidate] (9.23 s) : 0, 9229650
gantt
title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (714.11 ms) : 0, 714110
BytebuddyAgent [candidate] (725.681 ms) : 0, 725681
GlobalTracer [baseline] (239.111 ms) : 0, 239111
GlobalTracer [candidate] (242.452 ms) : 0, 242452
AppSec [baseline] (56.229 ms) : 0, 56229
AppSec [candidate] (56.086 ms) : 0, 56086
Remote Config [baseline] (712.569 µs) : 0, 713
Remote Config [candidate] (726.409 µs) : 0, 726
Telemetry [baseline] (12.976 ms) : 0, 12976
Telemetry [candidate] (13.744 ms) : 0, 13744
section iast
BytebuddyAgent [baseline] (832.275 ms) : 0, 832275
BytebuddyAgent [candidate] (832.106 ms) : 0, 832106
GlobalTracer [baseline] (229.635 ms) : 0, 229635
GlobalTracer [candidate] (229.651 ms) : 0, 229651
AppSec [baseline] (57.878 ms) : 0, 57878
AppSec [candidate] (58.062 ms) : 0, 58062
IAST [baseline] (21.273 ms) : 0, 21273
IAST [candidate] (21.294 ms) : 0, 21294
Remote Config [baseline] (653.806 µs) : 0, 654
Remote Config [candidate] (654.761 µs) : 0, 655
Telemetry [baseline] (8.7 ms) : 0, 8700
Telemetry [candidate] (8.716 ms) : 0, 8716
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (833.078 ms) : 0, 833078
BytebuddyAgent [candidate] (838.505 ms) : 0, 838505
GlobalTracer [baseline] (229.877 ms) : 0, 229877
GlobalTracer [candidate] (230.88 ms) : 0, 230880
AppSec [baseline] (57.923 ms) : 0, 57923
AppSec [candidate] (58.502 ms) : 0, 58502
IAST [baseline] (21.138 ms) : 0, 21138
IAST [candidate] (21.448 ms) : 0, 21448
Remote Config [baseline] (629.608 µs) : 0, 630
Remote Config [candidate] (642.86 µs) : 0, 643
Telemetry [baseline] (8.653 ms) : 0, 8653
Telemetry [candidate] (8.718 ms) : 0, 8718
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (830.904 ms) : 0, 830904
BytebuddyAgent [candidate] (829.958 ms) : 0, 829958
GlobalTracer [baseline] (229.471 ms) : 0, 229471
GlobalTracer [candidate] (229.285 ms) : 0, 229285
AppSec [baseline] (57.868 ms) : 0, 57868
AppSec [candidate] (58.529 ms) : 0, 58529
IAST [baseline] (20.848 ms) : 0, 20848
IAST [candidate] (20.653 ms) : 0, 20653
Remote Config [baseline] (671.401 µs) : 0, 671
Remote Config [candidate] (630.801 µs) : 0, 631
Telemetry [baseline] (8.569 ms) : 0, 8569
Telemetry [candidate] (8.578 ms) : 0, 8578
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section baseline
no_agent (373.94 µs) : 353, 394
. : milestone, 374,
iast (508.376 µs) : 485, 532
. : milestone, 508,
iast_FULL (737.81 µs) : 715, 761
. : milestone, 738,
iast_GLOBAL (556.194 µs) : 532, 580
. : milestone, 556,
iast_HARDCODED_SECRET_DISABLED (501.044 µs) : 478, 524
. : milestone, 501,
iast_INACTIVE (459.506 µs) : 438, 481
. : milestone, 460,
iast_TELEMETRY_OFF (491.518 µs) : 470, 513
. : milestone, 492,
tracing (452.613 µs) : 432, 474
. : milestone, 453,
section candidate
no_agent (380.274 µs) : 359, 401
. : milestone, 380,
iast (506.571 µs) : 483, 530
. : milestone, 507,
iast_FULL (740.772 µs) : 717, 764
. : milestone, 741,
iast_GLOBAL (554.184 µs) : 530, 578
. : milestone, 554,
iast_HARDCODED_SECRET_DISABLED (508.787 µs) : 486, 532
. : milestone, 509,
iast_INACTIVE (452.632 µs) : 431, 474
. : milestone, 453,
iast_TELEMETRY_OFF (497.768 µs) : 474, 521
. : milestone, 498,
tracing (448.476 µs) : 427, 469
. : milestone, 448,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section baseline
no_agent (1.36 ms) : 1339, 1381
. : milestone, 1360,
appsec (1.758 ms) : 1735, 1782
. : milestone, 1758,
appsec_no_iast (1.76 ms) : 1735, 1784
. : milestone, 1760,
iast (1.499 ms) : 1475, 1523
. : milestone, 1499,
profiling (1.541 ms) : 1516, 1566
. : milestone, 1541,
tracing (1.497 ms) : 1473, 1521
. : milestone, 1497,
section candidate
no_agent (1.367 ms) : 1347, 1387
. : milestone, 1367,
appsec (1.736 ms) : 1712, 1759
. : milestone, 1736,
appsec_no_iast (1.747 ms) : 1723, 1771
. : milestone, 1747,
iast (1.501 ms) : 1476, 1525
. : milestone, 1501,
profiling (1.548 ms) : 1523, 1573
. : milestone, 1548,
tracing (1.482 ms) : 1457, 1508
. : milestone, 1482,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 0 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section baseline
no_agent (1.465 ms) : 1453, 1476
. : milestone, 1465,
appsec (2.349 ms) : 2306, 2391
. : milestone, 2349,
iast (2.096 ms) : 2041, 2150
. : milestone, 2096,
iast_GLOBAL (2.142 ms) : 2087, 2197
. : milestone, 2142,
profiling (1.978 ms) : 1933, 2023
. : milestone, 1978,
tracing (1.937 ms) : 1895, 1979
. : milestone, 1937,
section candidate
no_agent (1.473 ms) : 1462, 1485
. : milestone, 1473,
appsec (2.355 ms) : 2312, 2399
. : milestone, 2355,
iast (2.102 ms) : 2048, 2157
. : milestone, 2102,
iast_GLOBAL (2.147 ms) : 2092, 2202
. : milestone, 2147,
profiling (1.957 ms) : 1914, 2001
. : milestone, 1957,
tracing (1.943 ms) : 1901, 1985
. : milestone, 1943,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~61dcacfca6, baseline=1.46.0-SNAPSHOT~afbea0b706
dateFormat X
axisFormat %s
section baseline
no_agent (15.684 s) : 15684000, 15684000
. : milestone, 15684000,
appsec (14.912 s) : 14912000, 14912000
. : milestone, 14912000,
iast (19.16 s) : 19160000, 19160000
. : milestone, 19160000,
iast_GLOBAL (18.053 s) : 18053000, 18053000
. : milestone, 18053000,
profiling (14.907 s) : 14907000, 14907000
. : milestone, 14907000,
tracing (14.802 s) : 14802000, 14802000
. : milestone, 14802000,
section candidate
no_agent (15.52 s) : 15520000, 15520000
. : milestone, 15520000,
appsec (15.171 s) : 15171000, 15171000
. : milestone, 15171000,
iast (18.499 s) : 18499000, 18499000
. : milestone, 18499000,
iast_GLOBAL (18.138 s) : 18138000, 18138000
. : milestone, 18138000,
profiling (14.974 s) : 14974000, 14974000
. : milestone, 14974000,
tracing (14.668 s) : 14668000, 14668000
. : milestone, 14668000,
|
What Does This Do
line probe in unit tests are created by searching probe id (UUID) inside the targeted source file.
uuid are added as comment on the line we want to put a line probe. Add helper method to search a uuid inside the targeted source file and returns the line number used to create the line probe
Motivation
Additional Notes
Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: DEBUG-3270