зеркало из https://github.com/mozilla/gecko-dev.git
2af2523782
This adds to the byte-oriented ModuloBuffer from bug 1563425: - Thread-safety: All APIs may be called at any time from any thread. - Structure: The buffer will be divided in "blocks" of different size, with some block meta-data and space for the user "entry". - Capable of handling user resources: The user may provide a "deleter" that will be informed about soon-to-be-destroyed entries; so if some entries reference outside resources, these references may be properly released. Note: This first implementation still only allows the user to manipulate bytes and trivially-copyable objects (same as with the ModuloBuffer iterators). A follow-up bug will introduce better serialization capabilities, with the aim to eventually store everything that current Profiler Markers and their payloads contain. Differential Revision: https://phabricator.services.mozilla.com/D37702 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
linker | ||
misc | ||
tests | ||
moz.build |