gecko-dev/mozglue/baseprofiler
Gerald Squelart dcbdec35d9 Bug 1626837 - ProfileChunkedBuffer basic data and functions - r=canaltinova
ProfileChunkedBuffer simulates a near-infinite buffer over ProfileBufferChunks.
It uses a ProfileBufferChunkManager to get chunks and later release them.
Its use is similar to BlocksRingBuffer:
- It reserves blocks in chunks, adds some structure (just the size of the entry
  that follows), and lets a user-provided writer write the entry.
- It allows reading past entries.
- It can be in an "out-of-session" state where APIs are still available but do
  nothing.

It is intended to eventually replace BlocksRingBuffer.

This patch starts with the basic structure, following patches will add all
planned features.

Differential Revision: https://phabricator.services.mozilla.com/D69493

--HG--
extra : moz-landing-system : lando
2020-04-15 03:21:09 +00:00
..
core Bug 1627563 - Replace MOZ_MUST_USE with [[nodiscard]] in mozglue/baseprofiler. r=canaltinova 2020-04-06 10:04:38 +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 1626837 - ProfileChunkedBuffer basic data and functions - r=canaltinova 2020-04-15 03:21:09 +00:00
moz.build Bug 1626837 - ProfileChunkedBuffer basic data and functions - r=canaltinova 2020-04-15 03:21:09 +00:00