GeezerVison is showing github.com — Root the digest at the application and make it readable (#31) · jonoffcpu/jonoffcpu@0730ec9
File treeExpand file treeCollapse file tree Open diff view settings integrationTest/java/io/github/jonoffcpu/correlator java/io/github/jonoffcpu/correlator resources/io/github/jonoffcpu/correlator/presets
testFixtures/java/io/github/jonoffcpu/correlator java/io/github/jonoffcpu/correlator
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: AGENTS.md +6-2Lines changed: 6 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -234,8 +234,12 @@ and exact-cookie matches rather than only checking process exit status. | 234 | 234 | reads inputs through providers or value sources. Check a build change with | 235 | 235 | `--configuration-cache-problems=warn` and by running it twice: the second run | 236 | 236 | must say `Reusing configuration cache`. | 237 | | -- Keep public configuration, manifest, capture stream, report, and CLI changes backward | 238 | | - compatible unless a format/version migration is designed and documented. | | 237 | +- From the 1.0.0 release on, keep public configuration, manifest, capture stream, | | 238 | + report, analysis output (stack profile, digest, `top`, `export`) and CLI changes | | 239 | + backward compatible unless a format/version migration is designed and | | 240 | + documented. Until then there is no compatibility to keep: change a format or | | 241 | + option outright, and remove old schemas, aliases and fallbacks rather than | | 242 | + carrying them. | 239 | 243 | - Use supported public JDK JFR APIs in the correlator. Do not depend on | 240 | 244 | `jdk.jfr.internal.*` implementation classes. | 241 | 245 | - CI and releases share [`.github/workflows/build-and-verify.yml`](.github/workflows/build-and-verify.yml). | |
Collapse file Copy file name to clipboardExpand all lines: README.md +99-50Lines changed: 99 additions & 50 deletions - Display the source diff
- Display the rich diff
Large diffs are not rendered by default. Collapse file Copy file name to clipboardExpand all lines: gradle/libs.versions.toml +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | # Every library and plugin version of the build, declared once. | 2 | 2 | [versions] | | 3 | +commonmark = "0.30.0" | 3 | 4 | protobuf = "4.36.1" | 4 | 5 | junit = "6.1.3" | 5 | 6 |
| @@ -13,6 +14,10 @@ snakeyaml = "org.yaml:snakeyaml:2.7" | 13 | 14 |
| 14 | 15 | # Test libraries. JUnit and Testcontainers are aligned by their BOMs, which every test suite imports as platforms. | 15 | 16 | assertj-core = "org.assertj:assertj-core:3.27.7" | | 17 | +# The Markdown renderer the Apache Pulsar launcher turns the digest into HTML with, for the digest's rendering tests. | | 18 | +commonmark = { module = "org.commonmark:commonmark", version.ref = "commonmark" } | | 19 | +commonmark-ext-gfm-tables = { module = "org.commonmark:commonmark-ext-gfm-tables", version.ref = "commonmark" } | | 20 | +commonmark-ext-heading-anchor = { module = "org.commonmark:commonmark-ext-heading-anchor", version.ref = "commonmark" } | 16 | 21 | awaitility = "org.awaitility:awaitility:4.3.0" | 17 | 22 | junit-bom = { module = "org.junit:junit-bom", version.ref = "junit" } | 18 | 23 | junit-platform-console = { module = "org.junit.platform:junit-platform-console" } | |
Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/OFFLINE.md +189-64Lines changed: 189 additions & 64 deletions - Display the source diff
- Display the rich diff
Large diffs are not rendered by default. Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/build.gradle.kts +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -102,6 +102,14 @@ tasks.withType<Test>().configureEach { | 102 | 102 | ) | 103 | 103 | } | 104 | 104 |
| | 105 | +testing.suites.named<JvmTestSuite>("test") { | | 106 | + dependencies { | | 107 | + implementation(libs.commonmark) | | 108 | + implementation(libs.commonmark.ext.gfm.tables) | | 109 | + implementation(libs.commonmark.ext.heading.anchor) | | 110 | + } | | 111 | +} | | 112 | + | 105 | 113 | tasks.test { | 106 | 114 | maxHeapSize = "1g" | 107 | 115 | (options as JUnitPlatformOptions).excludeTags("readme") | |
Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/src/integrationTest/java/io/github/jonoffcpu/correlator/ExportDuckDbTest.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ void readByDuckDb(@TempDir Path dir) throws Exception { | 72 | 72 | 0), | 73 | 73 | new StackProfile.Entry( | 74 | 74 | List.of( | 75 | | - frame(StackProfile.Kind.JAVA, "y.Idle.run"), | | 75 | + frame(StackProfile.Kind.JAVA, "y.Waiting.run"), | 76 | 76 | frame(StackProfile.Kind.JAVA, "x.App.wait")), | 77 | 77 | null, | 78 | 78 | null, | |
Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/src/integrationTest/java/io/github/jonoffcpu/correlator/FixtureAcceptanceTest.java +275-36Lines changed: 275 additions & 36 deletions Large diffs are not rendered by default. Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/src/main/java/io/github/jonoffcpu/correlator/AnalysisOutput.java +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -59,6 +59,9 @@ interface AnalysisOutput { | 59 | 59 |
| 60 | 60 | ReportProto.JfrSelection jfrSelection(); | 61 | 61 |
| | 62 | + /** The process and machine the JFR describes, with every detail; null when the JFR pass did not produce one. */ | | 63 | + SignalProto.JfrRecording recording(); | | 64 | + | 62 | 65 | ReportProto.PopulationEstimate populationEstimate(); | 63 | 66 |
| 64 | 67 | /** Every matched pair's delivery delay, ascending, for the report's percentiles. */ | @@ -194,6 +197,11 @@ public ReportProto.JfrSelection jfrSelection() { | 194 | 197 | return analysis.jfrSelection(); | 195 | 198 | } | 196 | 199 |
| | 200 | + @Override | | 201 | + public SignalProto.JfrRecording recording() { | | 202 | + return analysis.recording(); | | 203 | + } | | 204 | + | 197 | 205 | @Override | 198 | 206 | public ReportProto.PopulationEstimate populationEstimate() { | 199 | 207 | return analysis.populationEstimate(); | @@ -349,6 +357,11 @@ public ReportProto.JfrSelection jfrSelection() { | 349 | 357 | return result.selectionMetadata(); | 350 | 358 | } | 351 | 359 |
| | 360 | + @Override | | 361 | + public SignalProto.JfrRecording recording() { | | 362 | + return result.capture().recording; | | 363 | + } | | 364 | + | 352 | 365 | @Override | 353 | 366 | public ReportProto.PopulationEstimate populationEstimate() { | 354 | 367 | return result.populationEstimate(); | |
Collapse file Copy file name to clipboardExpand all lines: jonoffcpu-correlator/src/main/java/io/github/jonoffcpu/correlator/CaptureInput.java +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -39,6 +39,8 @@ final class CaptureInput { | 39 | 39 | final boolean partial; | 40 | 40 | /** What partial mode reports about the prefix; the engine adds what it observes in the JFR. */ | 41 | 41 | final ReportProto.PartialReport.Builder diagnostics; | | 42 | + /** The process and machine the JFR describes, set by the JFR pass; null until then, and in partial mode. */ | | 43 | + SignalProto.JfrRecording recording; | 42 | 44 |
| 43 | 45 | private CaptureInput( | 44 | 46 | CaptureProto.CaptureStart start, | |
|