Commit f4527282 authored by Markus Stange's avatar Markus Stange
Browse files

Bug 1323100 - Use AutoProfilerRegister to register chromium threads with the profiler. r=froydnj

MozReview-Commit-ID: 12LS5hqCA2c

--HG--
extra : rebase_source : 9b5e44b5710b7758c998601f1da79429956ae4c7
parent 48513de6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -153,8 +153,7 @@ void Thread::StopSoon() {
}

void Thread::ThreadMain() {
  char aLocal;
  profiler_register_thread(name_.c_str(), &aLocal);
  mozilla::AutoProfilerRegister registerThread(name_.c_str());
  mozilla::IOInterposer::RegisterCurrentThread();

  // The message loop for this thread.
@@ -186,7 +185,6 @@ void Thread::ThreadMain() {
  DCHECK(GetThreadWasQuitProperly());

  mozilla::IOInterposer::UnregisterCurrentThread();
  profiler_unregister_thread();

#ifdef MOZ_TASK_TRACER
  mozilla::tasktracer::FreeTraceInfo();