зеркало из https://github.com/mozilla/gecko-dev.git
6ea0a33e9a
By default `ModuloBuffer` allocates its own buffer on the heap. Now `ModuloBuffer` adds two alternatives: - Take ownership of a pre-allocated `UniquePtr<uint8_t>` buffer. - Work over an unowned `uint8_t*` array. The caller is responsible for ownership, and ensuring that the array lives at least as long as the `ModuloBuffer`/`BlocksRingBuffer`. `BlocksRingBuffer` can pass along these new options to its underlying `ModuloBuffer`. The main use will be for small on-stack `BlocksRingBuffer` that can store a stack trace, or to more easily collect data (without allocating anything on the heap) that can then go into the upcoming `ProfileBuffer`'s `BlocksRingBuffer`. Differential Revision: https://phabricator.services.mozilla.com/D38285 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
linker | ||
misc | ||
tests | ||
moz.build |