Description[tools] Manually write JSON in profile.js to avoid huge strings
In the tick processor, in cases where there are a lot of ticks (e.g.
long running programs), JSON.stringify could throw a range exception
because the created string is too large.
Instead of creating the entire JSON string in memory, we now write the
top-level parts of the JSON manually, writing out the ticks individually
instead of all together.
Review-Url: https://codereview.chromium.org/2754683002
Cr-Commit-Position: refs/heads/master@{#43973}
Committed: https://chromium.googlesource.com/v8/v8/+/0956e587928c7ad8fa4049791a7015cc91bbea53
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|