• leszeks's avatar
    [tools] Manually write JSON in profile.js to avoid huge strings · 0956e587
    leszeks authored
    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}
    0956e587
profile.js 25.6 KB