GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Make export friendlier to SQL by lhotari · Pull Request #11 · jonoffcpu/jonoffcpu Conversation
|
| JSON Lines | CSV |
|---|---|
javaFrames, javaFrameKinds, kernelFrames, userFrames (arrays, null when absent) |
— (CSV stays flat) |
canonicalJavaStack |
canonical_java_stack |
threadPool |
thread_pool |
run (--run-label, default profile label, else first session id) |
run |
estimateAvailable |
estimate_available |
--numbers string restores the previous form.--run-metadata FILE writes a single JSON object with the profile's run, sources, sampling, dimensions, estimate validity and totals.brew install duckdb when it isn't already on the runner, and sets JONOFFCPU_REQUIRE_DUCKDB=true so the SQL checks fail instead of skipping there../gradlew spotlessCheck :jonoffcpu-correlator:check -PjonoffcpuFixtures=… passes locally with DuckDB 1.5.5 and JONOFFCPU_REQUIRE_DUCKDB=true.javaFrames joined with ; equals javaStack; javaFrameKinds has the same length; observed nanoseconds sum to 8,519,334,220,784; no generated-class address is left in canonicalJavaStack; --run-metadata total matches.javaFrames as VARCHAR[] and observedNanos as BIGINT with no columns argument.javaFrames, returns internalConsumerFlow 11.982 s / 4,245 and GrowableBatchedArrayBlockingQueue.offer 4.946 s / 1,565. The two-run comparison reproduces the spec's table exactly (Alpine/Wolfi s/M: 2.034/2.396, 0.735/0.989, 0.091/0.161, 0.116/0.124, 0.064/0.101).--numbers string JSONL row and every CSV line starts with the previous row byte for byte.ExportTest: arrays, canonical names, pools (pulsar-io-3-25 → pulsar-io-#-#, [tid=12345] → [tid=#]), the 2^53 boundary, field order, run metadata, and DuckDB type inference plus a recipe.The README's "Analyzing with SQL" recipes land with the README PR at the top of the stack.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7a4a830 to
9861a9f
Compare
Every table of the Apache Pulsar analysis was computed in DuckDB from export, and every query started the same way: split the joined stacks twice, cast the string counters, add a run column by hand and regexp the thread names. export now carries that itself, appended after the existing columns so today's readers keep working: - JSON Lines rows add javaFrames, javaFrameKinds, kernelFrames and userFrames as arrays (null for an absent stack); CSV stays flat. - canonicalJavaStack / canonical_java_stack: the Java stack without generated-class addresses, the rule of stacks --canonical-names, so two runs' stacks join. - threadPool / thread_pool: the thread name with digit runs as '#'. - run: --run-label, by default the profile's label, else its first source's session id. - estimateAvailable / estimate_available on every row, so a query cannot use the estimated columns by accident. - JSON Lines counters are numbers up to 2^53-1 (strings beyond it); --numbers string restores the previous form. - --run-metadata FILE writes the profile's provenance, dimensions, estimate validity and totals as one JSON object to join on run. On the Pulsar broker fixture the export has 2,791 rows whose arrays join back to javaStack and whose observed nanoseconds sum to 8,519,334,220,784; DuckDB infers VARCHAR[] and BIGINT without a schema, and the README's boundary and two-run comparison recipes reproduce the spec's tables (internalConsumerFlow 11.982 s / 4,245 intervals; 2.034 vs 2.396 s per million messages on Alpine vs Wolfi). With --numbers string every row extends the previous export's row byte for byte, as every CSV line does. ExportTest checks DuckDB's type inference and a recipe when duckdb is on the path; CI installs it with Homebrew on the x86-64 glibc job and sets JONOFFCPU_REQUIRE_DUCKDB so the check cannot silently skip there.
9861a9f to
4e6f40c
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.