Uh oh!
There was an error while loading. Please reload this page.
perf_hooks: add binary export/import to Histogram - #65434
Conversation
nodejs-github-bot
commented
Aug 20, 2026
Review requested:
|
00936d8 to
fbcb489CompareCodecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #65434 +/- ##
========================================
Coverage 90.13% 90.14% ========================================
Files 751 751 Lines 253439 253789 +350 Branches 47730 47808 +78 ========================================
+ Hits 228448 228775 +327 + Misses 16256 16239 -17 - Partials 8735 8775 +40
🚀 New features to boost your workflow:
|
fbcb489 to
5d9f7ceCompare5d9f7ce to
dfaacafCompareThe
notable-change Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
jasnell
commented
Aug 20, 2026
Notes for the notable change: This PR gives Histogram a new binary interchange format |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dfaacaf to
28eb138Comparelegendecas
commented
Aug 21, 2026
require('node:perf_hooks').importHistogram(newUint8Array([0xa3,// map(3)0x01,0x1b,0,0,0x20,0,0,0,0,0,// 1 (lowest) = 2**450x02,0x1b,0,0,0x40,0,0,0,0,0,// 2 (highest) = 2**460x03,0x05,// 3 (figures) = 5]));This still bypasses the checks and triggers assert on |
jasnell
commented
Aug 21, 2026
Ugh. yeah, will have to make the validation more thorough.. will update shortly |
28eb138 to
9b57e4fCompare
This comment was marked as outdated.
This comment was marked as outdated.
af64f27 to
cc71facCompareProvide a binary export/import mechanism for histograms. Since there is no standard interchange format for histograms, using CBOR is meant to make the format as platform/runtime agnostic as possible while producing a compact/efficient result. No new dependency is introduced, we just encode the CBOR directly. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode/Opus
Signed-off-by: James M Snell <jasnell@gmail.com>
cc71fac to
b784466Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Aug 25, 2026
This comment was marked as duplicate.
This comment was marked as duplicate.
Provide a binary export/import mechanism for histograms. Since there is no standard interchange format for histograms, using CBOR is meant to make the format as platform/runtime agnostic as possible while producing a compact/efficient result. No new dependency is introduced, we just encode the CBOR directly. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode/Opus PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
jasnell
commented
Aug 26, 2026
Landed in 96b1293...7b6b21a |
Provide a binary export/import mechanism for histograms. Since there is no standard interchange format for histograms, using CBOR is meant to make the format as platform/runtime agnostic as possible while producing a compact/efficient result. No new dependency is introduced, we just encode the CBOR directly. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode/Opus PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Provide a binary export/import mechanism for histograms. Since there is no standard interchange format for histograms, using CBOR is meant to make the format as platform/runtime agnostic as possible while producing a compact/efficient result. No new dependency is introduced, we just encode the CBOR directly. Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode/Opus PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #65434 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Stacks on: #65416
Pay attention only to the last two commits.