Commit 6b44df2
perf,src: add HistogramBase and internal/histogram.js
Separating this out from the QUIC PR to allow it to be separately
reviewed. The QUIC implementation makes use of the hdr_histogram
for dynamic performance monitoring. This introduces a BaseObject
class that allows the internal histograms to be accessed on the
JavaScript side and adds a generic Histogram class that will be
used by both QUIC and perf_hooks (for the event loop delay
monitoring).
Signed-off-by: James M Snell <jasnell@gmail.com>
PR-URL: #31988
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent 4d5318c commit 6b44df2Copy full SHA for 6b44df2
File tree
Expand file treeCollapse file tree
8 files changed
+355
-74
lines changedOpen diff view settings
Filter options
- lib
- internal
- src
Expand file treeCollapse file tree
8 files changed
+355
-74
lines changedOpen diff view settings
Collapse file
lib/internal/histogram.js
Copy file name to clipboard+94Lines changed: 94 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
Collapse file
+6-43Lines changed: 6 additions & 43 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
| ||
52 | 51 | |
53 | 52 | |
54 | 53 | |
55 | | - |
56 | 54 | |
57 | 55 | |
58 | 56 | |
59 | 57 | |
60 | 58 | |
61 | 59 | |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
62 | 65 | |
63 | | - |
64 | | - |
65 | 66 | |
66 | 67 | |
67 | 68 | |
| ||
557 | 558 | |
558 | 559 | |
559 | 560 | |
560 | | - |
561 | | - |
562 | | - |
563 | | - |
564 | | - |
565 | | - |
566 | | - |
| 561 | + |
567 | 562 | |
568 | 563 | |
569 | | - |
570 | | - |
571 | | - |
572 | | - |
573 | | - |
574 | | - |
575 | | - |
576 | | - |
577 | | - |
578 | | - |
579 | | - |
580 | | - |
581 | | - |
582 | | - |
583 | | - |
584 | | - |
585 | | - |
586 | | - |
587 | | - |
588 | | - |
589 | | - |
590 | | - |
591 | | - |
592 | | - |
593 | | - |
594 | | - |
595 | | - |
596 | | - |
597 | | - |
598 | | - |
599 | | - |
600 | | - |
601 | 564 | |
602 | 565 | |
603 | 566 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
| 143 | + |
143 | 144 | |
144 | 145 | |
145 | 146 | |
| ||
533 | 534 | |
534 | 535 | |
535 | 536 | |
| 537 | + |
536 | 538 | |
537 | 539 | |
538 | 540 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
406 | 406 | |
407 | 407 | |
408 | 408 | |
| 409 | + |
409 | 410 | |
410 | 411 | |
411 | 412 | |
|
Collapse file
+45-25Lines changed: 45 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
11 | | - |
12 | | - |
| 12 | + |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | | - |
16 | | - |
| 16 | + |
| 17 | + |
17 | 18 | |
18 | 19 | |
19 | | - |
20 | | - |
| 20 | + |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | | - |
24 | | - |
| 24 | + |
| 25 | + |
25 | 26 | |
26 | 27 | |
27 | | - |
28 | | - |
| 28 | + |
| 29 | + |
29 | 30 | |
30 | 31 | |
31 | | - |
32 | | - |
| 32 | + |
| 33 | + |
33 | 34 | |
34 | 35 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
| 36 | + |
44 | 37 | |
45 | 38 | |
46 | | - |
| 39 | + |
| 40 | + |
47 | 41 | |
48 | 42 | |
49 | | - |
| 43 | + |
| 44 | + |
50 | 45 | |
51 | | - |
| 46 | + |
52 | 47 | |
53 | 48 | |
54 | | - |
| 49 | + |
55 | 50 | |
56 | 51 | |
57 | 52 | |
58 | 53 | |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
59 | 79 | |
60 | 80 | |
61 | 81 | |
|
0 commit comments