commit | 2788d5996f207c73092de98cd079800b81f67569 | [log] [tgz] |
---|---|---|
author | Vlad Tsyrklevich <vtsyrklevich@chromium.org> | Wed Jan 23 03:32:45 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 23 03:32:45 2019 |
tree | 5f66b014c2d91cb9fa7422107d732f4e588ef9a0 | |
parent | 95d0ff1171c00d2b4333c8fca7f18753aac4f64a [diff] |
base: Refactor function to collect stack traces Currently base::debug::StackTrace collects a stack trace in its constructor; however, this doesn't allow users to control the amount of memory allocated per stack trace. The maximum stack trace length is currently has each StackTrace consuming 2kb of memory on non-Windows platforms. This is far too much for GWP-ASan which currently stores hundreds of StackTraces. Instead, have StackTrace use a publicly exposed function that allows callers to specify the size of the stack trace. Bug: 912286 Change-Id: Ib0ba0ec645df8801568b983fe86ee156259ecb84 Reviewed-on: https://chromium-review.googlesource.com/c/1408218 Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org> Reviewed-by: Albert J. Wong <ajwong@chromium.org> Cr-Commit-Position: refs/heads/master@{#625067}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .