File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,17 +14,8 @@ Both functions are called once per iteration in a timed loop, creating equal **n
1414
1515** Objects Profile** : Should count allocation instances
1616- Theoretically: 50% ` a ` / 50% ` b ` (equal number of calls)
17- - Actually measured: 33% ` a ` / 66% ` b ` (biased toward larger objects)
17+ - Measured: Matches expectations
1818
1919** Space Profile** : Should count memory usage
2020- Expected: 33% ` a ` / 66% ` b ` (proportional to allocation sizes)
2121- Measured: Matches expectations
22-
23- ## Open Questions
24-
25- The objects profile shows bias toward larger allocations (66% vs 50% expected), suggesting the Node.js heap profiler may be:
26- - Sampling based on allocation size rather than allocation count
27- - Using size-weighted sampling for performance reasons
28- - Exhibiting V8 engine optimization effects on string allocation
29-
30- ** TODO** : Clarify with the Node.js profiler team how sampling works and why there's bias toward larger objects in the objects profile.
You can’t perform that action at this time.
0 commit comments