Skip to content

Commit

Permalink
Bug 1346981 - Add a Gecko Profiler label to WindowDestroyedEvent::Run…
Browse files Browse the repository at this point in the history
…; r=mystor

This function can potentially take a very long time.  This label helps us
identify it in BHR data via telemetry.
  • Loading branch information
ehsan committed Mar 13, 2017
1 parent 2028237 commit d877744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dom/base/nsGlobalWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9389,6 +9389,9 @@ class WindowDestroyedEvent : public Runnable

NS_IMETHOD Run() override
{
PROFILER_LABEL("WindowDestroyedEvent", "Run",
js::ProfileEntry::Category::OTHER);

nsCOMPtr<nsIObserverService> observerService =
services::GetObserverService();
if (observerService) {
Expand Down

0 comments on commit d877744

Please sign in to comment.