gecko-dev/mozglue/baseprofiler
Gerald Squelart bccea8601e Bug 1571171 - Clamp profiler capacity to allowed values - r=canaltinova
The profiler can be given any power of two, but there were no safety checks to ensure that the buffer had a minimum workable capacity (to hold at least 4 chunks, each capable of holding at least one stack sample), and also to prevent large buffers that could break the currently-supported 2GiB limit.

This fixes the issue with test_merged_stacks.js, which was requesting a too-small buffer. (This started when we switched to the chunk-based buffer, because the profiler was blindly using the provided number as maximum, and dividing that size by 4 for each chunk, which was not enough to hold a full sample in some builds.)

Differential Revision: https://phabricator.services.mozilla.com/D73212
2020-05-04 12:49:30 +00:00
..
core Bug 1571171 - Clamp profiler capacity to allowed values - r=canaltinova 2020-05-04 12:49:30 +00:00
lul Bug 1291377 - Don't use custom linker on Android 6.0+ r=glandium 2020-03-20 15:35:48 +00:00
public Bug 1634782 - Enable MOZ_BASE_PROFILER on MingW. r=gerald 2020-05-01 23:11:27 +00:00
moz.build Bug 1626837 - ProfileChunkedBuffer basic data and functions - r=canaltinova 2020-04-15 03:21:09 +00:00