Closed Bug 1620515 Opened 5 years ago Closed 5 years ago

Extract entry reader&writer out of BlocksRingBuffer

Categories

(Core :: Gecko Profiler, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(4 files)

The entry reader&writer can be moved outside of BlocksRingBuffer.
The new fission-friendly storage will be able to use these classes directly, which will ease the transition.

ProfileBufferEntrySerialization.h will contain the entry reader and writer.

This patch creates the file with renamed copies of the (de)serializers from
BlocksRingBuffer; there shouldn't be significant code changes, this hg cp will
help keep their history. See next patch for how they will actually be used.

Depends on D65694

Actual implementation of the entry reader and writer.
They expose a very similar API as the original BlocksRingBuffer entry reader&
writer.

(No tests here; In the next patch they will get used instead of the old reader&
writer, and will hence inherit all relevant tests.)

Depends on D65695

The new ProfileBufferEntryReader/Writer are now used everywhere, including in
the profilers and tests.
The old EntryReader/Writer have been removed.

Depends on D65696

Pushed by gsquelart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b5ff9d8d43ec Revert order of BlocksRingBuffer (de)serializer declarations - r=canaltinova https://hg.mozilla.org/integration/autoland/rev/6dd083a1efc1 ProfileBufferEntrySerialization.h with (de)serializers - r=canaltinova https://hg.mozilla.org/integration/autoland/rev/b8005deff29e ProfileBufferEntryReader and ProfileBufferEntryWriter - r=canaltinova https://hg.mozilla.org/integration/autoland/rev/aee1b0159e7e Replace BlocksRingBuffer::EntryReader/Writer with ProfileBufferEntryReader/Writer - r=canaltinova
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: