Bug 1408261 - Update profiler tracing stuff to use the new macro. r?mstange draft
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 13 Oct 2017 15:03:13 -0400
changeset 680264 41413c1b9632493516a184596e8549abd7bb19ec
parent 680263 56b5c1a87dcb2c0391e7f642f99e6638dcf235c0
child 735801 2dbb94961b3685e22c9be1c918a5096c59e3411c
push id84438
push userkgupta@mozilla.com
push dateFri, 13 Oct 2017 19:03:34 +0000
reviewersmstange
bugs1408261, 1403868
milestone58.0a1
Bug 1408261 - Update profiler tracing stuff to use the new macro. r?mstange This code lost a landing race with bug 1403868 and so got left behind. MozReview-Commit-ID: 6qaeAYeFLvA
gfx/layers/wr/WebRenderBridgeParent.cpp
--- a/gfx/layers/wr/WebRenderBridgeParent.cpp
+++ b/gfx/layers/wr/WebRenderBridgeParent.cpp
@@ -626,17 +626,17 @@ WebRenderBridgeParent::RecvEmptyTransact
 {
   if (mDestroyed) {
     for (const auto& op : aToDestroy) {
       DestroyActor(op);
     }
     return IPC_OK();
   }
 
-  AutoProfilerTracing tracing("Paint", "EmptyTransaction");
+  AUTO_PROFILER_TRACING("Paint", "EmptyTransaction");
   UpdateFwdTransactionId(aFwdTransactionId);
   AutoClearReadLocks clearLocks(mReadLocks);
 
   // This ensures that destroy operations are always processed. It is not safe
   // to early-return without doing so.
   AutoWebRenderBridgeParentAsyncMessageSender autoAsyncMessageSender(this, &aToDestroy);
 
   if (!aCommands.IsEmpty()) {