[SuperSize] HTML Viewer: Fix Method Count under diff mode.
Under diff mode, previously the HTML Viewer would report very large method (delta) counts. This was caused by the Python code assigning a delta count of 1 (instead of 0) for changed symbols. Moreover, to support delta count of 0, the JavaScript code change needs to be updated to read it (i.e., cannot use "||" to assign defaults). This CL fixes the above problems. Moreover, to reduce .ndjson file size, 0 is used as the default symbol count under diff mode (1 is still the defalut if one .size file is used to generate the .ndjson file). Bug: 884985 Change-Id: I8038f8b8298073c8ced5ccf9100cf9911e533861 Reviewed-on: https://chromium-review.googlesource.com/1246280Reviewed-by:agrieve <agrieve@chromium.org> Reviewed-by:
Samuel Huang <huangs@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/master@{#594431}
Showing
Please register or sign in to comment