Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange.

PROFILER_MARKER is now just a trivial wrapper for profiler_add_marker(). This
patch removes it.
This commit is contained in:
Nicholas Nethercote
2017-06-22 13:40:21 +10:00
parent 55c693e8f9
commit 4a9adbea0f
20 changed files with 39 additions and 46 deletions

View File

@@ -837,13 +837,13 @@ CycleCollectedJSRuntime::GCSliceCallback(JSContext* aContext,
#ifdef MOZ_GECKO_PROFILER
if (profiler_is_active()) {
if (aProgress == JS::GC_CYCLE_END) {
PROFILER_MARKER_PAYLOAD(
profiler_add_marker(
"GCMajor",
MakeUnique<GCMajorMarkerPayload>(aDesc.startTime(aContext),
aDesc.endTime(aContext),
aDesc.summaryToJSON(aContext)));
} else if (aProgress == JS::GC_SLICE_END) {
PROFILER_MARKER_PAYLOAD(
profiler_add_marker(
"GCSlice",
MakeUnique<GCSliceMarkerPayload>(aDesc.lastSliceStart(aContext),
aDesc.lastSliceEnd(aContext),
@@ -936,7 +936,7 @@ CycleCollectedJSRuntime::GCNurseryCollectionCallback(JSContext* aContext,
profiler_is_active())
{
#ifdef MOZ_GECKO_PROFILER
PROFILER_MARKER_PAYLOAD(
profiler_add_marker(
"GCMinor",
MakeUnique<GCMinorMarkerPayload>(self->mLatestNurseryCollectionStart,
TimeStamp::Now(),