gecko-dev/mozglue
Gerald Squelart 8f08153522 Bug 1763176 - Don't move to the next entry after streaming a counter, as it would skip an immediately-adjacent counter - r=canaltinova
If the sampler records more than one counter (e.g.: memory and per-process CPU), both counters could appear right next to each other in the buffer.
But then the current streaming code goes something like this:
1. Read entry
2. If entry is a counter, go to the next entry (which should be a timestamp) and output the full counter.
3. Go to the next entry.
4: Return to step 1 (until there are no more entries).

The problem is this unconditional 3rd step:
If we've just read a counter at step 2, we're located at the entry *past* that counter's data, which could be the start of the next counter, that the 3rd step now effectively skips!

Also:
- After reading the time, we can do e.Next() to skip it before testing if it's too old, this may save one loop.
- After reading the optional "number", we can also do e.Next() to skip it, which will save one loop as well.

Differential Revision: https://phabricator.services.mozilla.com/D145056
2022-04-29 12:30:50 +00:00
..
android Bug 1415595 - Remove unnecessary mode when opening ASHMEM_NAME_DEF. r=jld 2021-12-15 23:56:33 +00:00
baseprofiler Bug 1763176 - Don't move to the next entry after streaming a counter, as it would skip an immediately-adjacent counter - r=canaltinova 2022-04-29 12:30:50 +00:00
build Bug 1607588 - Remove suppression for NSS shutdown race. r=decoder 2022-03-29 18:48:37 +00:00
linker Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
misc Bug 1766377 - Fix remaining sign-compare warnings in Windows builds. r=rkraesig,gsvelto,media-playback-reviewers,gfx-reviewers,bryce,sotaro 2022-04-29 09:14:12 +00:00
static Bug 1758780 - Update builders to rustc 1.60. r=firefox-build-system-reviewers,mhentges 2022-04-21 04:36:24 +00:00
tests Bug 1766359 - Fix unreachable-code-return warnings in Windows builds. r=emilio,mhowell,nika,rkraesig 2022-04-26 21:44:54 +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