Bug 1526998 - Show markers for nsObserverService notifications, r=mstange.
authorFlorian Quèze <florian@queze.net>
Thu, 14 Feb 2019 05:10:14 +0000
changeset 459023 4394e1f91db89085e5d28e8d07924015eebde791
parent 459022 476d1c20007e05a2f8bbd08ee6523b8af4426bfc
child 459024 e6a874b75c0bd45b9d782b9edde3bb30c0134d14
push id35554
push userrgurzau@mozilla.com
push dateThu, 14 Feb 2019 17:00:27 +0000
treeherdermozilla-central@db6bcdbe4040 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1526998
milestone67.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 1526998 - Show markers for nsObserverService notifications, r=mstange. Differential Revision: https://phabricator.services.mozilla.com/D19379
xpcom/ds/nsObserverService.cpp
--- a/xpcom/ds/nsObserverService.cpp
+++ b/xpcom/ds/nsObserverService.cpp
@@ -273,16 +273,18 @@ NS_IMETHODIMP nsObserverService::NotifyO
 
   MOZ_TRY(EnsureValidCall());
   if (NS_WARN_IF(!aTopic)) {
     return NS_ERROR_INVALID_ARG;
   }
 
   mozilla::TimeStamp start = TimeStamp::Now();
 
+  AUTO_PROFILER_TEXT_MARKER_CAUSE("NotifyObservers", nsDependentCString(aTopic), OTHER,
+                                  profiler_get_backtrace());
   AUTO_PROFILER_LABEL_DYNAMIC_CSTR("nsObserverService::NotifyObservers", OTHER,
                                    aTopic);
 
   nsObserverList* observerList = mObserverTopicTable.GetEntry(aTopic);
   if (observerList) {
     observerList->NotifyObservers(aSubject, aTopic, aSomeData);
   }