mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
87c8e35964
Markers and their payloads contain all kinds of objects that we'll need to serialize into a BlocksRingBuffer (new ProfileBuffer storage). This patch will add functions to: - Compute the size needed to store objects, - Write multiple objects into a BlockRingBuffer entry, - Read objects back from an entry. And it will provide a number of useful de/serialization helpers for: - Trivially-copyable objects, - Strings of different types, - Raw pointers (with some safety guards to avoid surprises), - Tuples (to store multiple sub-objects), - Spans, - Maybe (for optional objects), - Variant. This should be enough to store most kinds of data. Further specializations can&will be written as necessary for more complex or obscure types. Differential Revision: https://phabricator.services.mozilla.com/D42496 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
linker | ||
misc | ||
tests | ||
moz.build |