Bug 1609674 - Add innerWindowID to setTimout markers. r=gerald

Differential Revision: https://phabricator.services.mozilla.com/D60269

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nazım Can Altınova 2020-01-20 18:52:41 +00:00
parent 4b34baa214
commit f76aad2740

View File

@ -156,7 +156,8 @@ void TimeoutManager::MoveIdleToActive() {
// don't have end before start...
PROFILER_ADD_MARKER_WITH_PAYLOAD(
"setTimeout deferred release", DOM, TextMarkerPayload,
(marker, delta.ToMilliseconds() >= 0 ? timeout->When() : now, now));
(marker, delta.ToMilliseconds() >= 0 ? timeout->When() : now, now,
Some(mWindow.WindowID())));
}
#endif
num++;
@ -905,8 +906,8 @@ void TimeoutManager::RunTimeout(const TimeStamp& aNow,
// don't have end before start...
PROFILER_ADD_MARKER_WITH_PAYLOAD(
"setTimeout", DOM, TextMarkerPayload,
(marker, delta.ToMilliseconds() >= 0 ? timeout->When() : now,
now));
(marker, delta.ToMilliseconds() >= 0 ? timeout->When() : now, now,
Some(mWindow.WindowID())));
}
#endif