gecko-dev/mozglue
Gerald Squelart 9c1ed025c1 Bug 1633572 - New small buffer entry to indicate an indentical sample instead of a copy - r=canaltinova
Instead of copying the full stack from the previous sample when identical, the new ProfileBufferEntryKind::TimeBeforeSameSample + SameSample entry pair indicates that this is an identical sample. Later when producing the final JSON profile, we can just re-use the same sample identifier as before.

This effectively lowers the size of this kind of entry from hundreds of bytes, down to 20-30 bytes, which should help with capturing more samples in the same buffer size. And it also uses less CPU resources, since we don't need to find the previous stack and copy it.

We still need to perform a full copy at the start of a buffer chunk, to make sure there is always a full stack available in case older previous chunks have been destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D122679
2021-08-18 01:47:41 +00:00
..
android Bug 1720368 - Remove MOZ_GECKO_PROFILER ifdefs around profiler_init and profiler_shutdown calls, r=gerald. 2021-07-15 22:04:23 +00:00
baseprofiler Bug 1633572 - New small buffer entry to indicate an indentical sample instead of a copy - r=canaltinova 2021-08-18 01:47:41 +00:00
build Bug 1724749: Consolidate all dllservices code; r=tkikuchi 2021-08-12 20:57:12 +00:00
linker Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
misc Bug 1724749: Consolidate all dllservices code; r=tkikuchi 2021-08-12 20:57:12 +00:00
static Bug 1723016 - Update builders to rustc 1.54. r=firefox-build-system-reviewers,nalexander 2021-08-03 02:03:32 +00:00
tests Bug 1633572 - ProfileChunkedBuffer::IsIndexInCurrentChunk - r=canaltinova 2021-08-18 01:47:41 +00:00
moz.build Bug 1724749: Consolidate all dllservices code; r=tkikuchi 2021-08-12 20:57:12 +00:00
mozglue.rc Bug 1714212 - Ensure COM initialized prior to showing skeleton UI r=Jamie,aklotz,tkikuchi 2021-07-07 22:37:14 +00:00