Closed Bug 1659382 Opened 4 years ago Closed 4 years ago

Misc code cleanup before implementing C++ Markers 2.0

Categories

(Core :: Gecko Profiler, task, P2)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(4 files)

Some small changes before starting the full implementation of Markers 2.0.

This patch makes it possible to serialize and deserialize std::basic_string's of different character types, not just std::string. This will be useful when dealing with char16_t from nsString and others.

We also expose the internal read-contents functions, to allow the user to read a sequence of characters of already-known length.

Instead of including all of BaseProfiler.h, we only need to declare the one function that we need in this header.

Depends on D87237

I want to use PROFILER_MARKER in the new C++ marker APIs, so I'm renaming this single (recent) use to something else.

Depends on D87239

Pushed by gsquelart@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/95ce902890c1
Generic std::basic_string<CHAR> (de)serialization - r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/7a8f4f42225a
Remove dependency on BaseProfiler.h from BaseProfilerDetail.h - r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/62ecfe9471fc
Remove dependency on BaseProfiler.h from BaseProfilingCategory.h - r=gregtatum
https://hg.mozilla.org/integration/autoland/rev/0a5e44820760
Rename AudioSink.cpp's PROFILER_MARKER to PROFILER_AUDIO_MARKER - r=gregtatum
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: