Bug 1416543 - use the gecko profiler macro to register/unregister the thread name. r=me
authorJerryShih <hshih@mozilla.com>
Sun, 12 Nov 2017 22:21:22 +0800
changeset 444714 046d8bdbc0238ea0ea611c5ffd92770020a4abf6
parent 444713 b5523502e39c3b160813f330dc79cf9e2b5d87c5
child 444715 7fb001f811d183095e9cfdd958c9215484377396
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1416543
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1416543 - use the gecko profiler macro to register/unregister the thread name. r=me MozReview-Commit-ID: 3ueSAuNCbGp
gfx/layers/wr/WebRenderBridgeParent.cpp
--- a/gfx/layers/wr/WebRenderBridgeParent.cpp
+++ b/gfx/layers/wr/WebRenderBridgeParent.cpp
@@ -99,24 +99,23 @@ void* get_proc_address_from_glcontext(vo
   }
   PRFuncPtr p = glcontext->LookupSymbol(procname);
   return reinterpret_cast<void*>(p);
 }
 
 void
 gecko_profiler_register_thread(const char* name)
 {
-  char stackTop;
-  profiler_register_thread(name, &stackTop);
+  PROFILER_REGISTER_THREAD(name);
 }
 
 void
 gecko_profiler_unregister_thread()
 {
-  profiler_unregister_thread();
+  PROFILER_UNREGISTER_THREAD();
 }
 
 namespace mozilla {
 namespace layers {
 
 using namespace mozilla::gfx;
 
 class MOZ_STACK_CLASS AutoWebRenderBridgeParentAsyncMessageSender