commit | 5c00d86ce2aa8adb932e4064847257644bdaff91 | [log] [tgz] |
---|---|---|
author | kraynov <kraynov@chromium.org> | Wed Apr 06 18:53:35 2016 +0900 |
committer | Qijiang Fan <fqj@google.com> | Fri Jun 05 02:54:21 2020 +0900 |
tree | c2236494a34971938aa43fbe2fd994858b016dc3 | |
parent | 8356707140b83533799af776e7c48989b3b27167 [diff] |
Handle zero-size allocations properly in heap profiler Now zero-size allocations are ignored for heap profiling. Percentage calculation is originally changed to avoid div-by-zero, but it also solves integer overflow issue with >32768 Kb allocations on platforms with 32-bit size_t. Review URL: https://codereview.chromium.org/1859143003 Cr-Commit-Position: refs/heads/master@{#385426} CrOS-Libchrome-Original-Commit: a29434e19fa91646e9c40afa5078e64e0ae73903