Bug 1410876 - Use AUTO_PROFILER_TRACING instead of AutoProfilerTracing draft
authorMiko Mynttinen <mikokm@gmail.com>
Mon, 23 Oct 2017 15:07:53 +0200
changeset 684712 409ccf59f0df6bce98fa524cac7c77508bb072c0
parent 684703 d49501f258b105c5e2dcd0a59896ec1ceabf726b
child 736940 c27df590e8a18d30c296fb563b774bade3b2ae97
push id85699
push userbmo:mikokm@gmail.com
push dateMon, 23 Oct 2017 13:08:39 +0000
bugs1410876
milestone58.0a1
Bug 1410876 - Use AUTO_PROFILER_TRACING instead of AutoProfilerTracing MozReview-Commit-ID: 55A1Aih6MzA
layout/base/nsLayoutUtils.cpp
--- a/layout/base/nsLayoutUtils.cpp
+++ b/layout/base/nsLayoutUtils.cpp
@@ -4031,17 +4031,17 @@ nsLayoutUtils::PaintFrame(gfxContext* aR
     // transaction because we wanted to update plugins first. Schedule the
     // composite now.
     if (layerManager) {
       layerManager->ScheduleComposite();
     }
   }
 
   {
-    AutoProfilerTracing tracing("Paint", "DisplayListResources");
+    AUTO_PROFILER_TRACING("Paint", "DisplayListResources");
 
     // Flush the list so we don't trigger the IsEmpty-on-destruction assertion
     if (!retainedBuilder) {
       list.DeleteAll(&builder);
       builder.EndFrame();
     } else {
       builder.EndFrame();
     }