Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 189833009: Trace where timers were scheduled in Blink (Closed)

Created:
6 years, 9 months ago by eseidel
Modified:
6 years, 9 months ago
CC:
blink-reviews, shans, jamesr, danakj, eae+blinkwatch, fs, eric.carlson_apple.com, yurys+blink_chromium.org, nessy, apavlov+blink_chromium.org, adamk+blink_chromium.org, loislo+blink_chromium.org, Steve Block, dino_apple.com, rune+blink, Nils Barth (inactive), krit, caseq+blink_chromium.org, Nate Chapin, arv+blink, aboxhall, marja+watch_chromium.org, dsinclair, dglazkov+blink, abarth-chromium, aandrey+blink_chromium.org, dstockwell, Timothy Loh, Rik, gavinp+loader_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, bemjb+rendering_chromium.org, pdr., rwlbuis, Eric Willigers, mvanouwerkerk+watch_chromium.org, alancutter (OOO until 2018), rjwright, zoltan1, sof, jbroman, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, timvolodine, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, dmazzoni, gyuyoung.kim_webkit.org, darktears, haraken, kojih, vcarbune.chromium, gavinp+prerender_chromium.org, jsbell+bindings_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, gasubic, leviw+renderwatch, vsevik+blink_chromium.org, Mike Lawther (Google), ed+blinkwatch_opera.com, paulirish+reviews_chromium.org, f(malita), Inactive, groby+blinkspell_chromium.org, pfeldman
Visibility:
Public.

Description

Trace where timers were scheduled in Blink This required adding a TraceLocation class modeled after base::Location in Chromium. This makes TraceLocation a required parameter to all Timer::start* calls. BUG=350592 R=abarth@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168858

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Comply with lass export controls #

Total comments: 1

Patch Set 4 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -169 lines) Patch
M Source/bindings/v8/V8GCForContextDispose.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/accessibility/AXObjectCache.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/DocumentTimeline.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/CSSFontSelector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/MatchedPropertiesCache.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/CSSSelectorWatch.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/FullscreenElementStack.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/MainThreadTaskRunner.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/PresentationAttributeStyle.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ScriptRunner.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/SpellCheckRequester.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/DOMWindowEventQueue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/EventSender.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/events/GenericEventQueue.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/FontResource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/MemoryCache.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fetch/Resource.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/DOMTimer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/DOMWindow.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/SuspendableTimer.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLSourceElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTrackElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/MediaController.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/forms/SearchInputType.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/imports/HTMLImportsController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLParserScheduler.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/shadow/MediaControlElements.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/MediaControls.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/SpinButtonElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/LoadableTextTrack.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/vtt/VTTRegion.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorHeapProfilerAgent.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorOverlay.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/DocumentThreadableLoader.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/loader/ImageLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/LinkLoader.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/PingLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/loader/TextTrackLoader.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/page/EventSource.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/ImageQualityController.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderMarquee.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderProgress.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderText.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGElement.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImageChromeClient.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/testing/MockPagePopupDriver.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XMLHttpRequestProgressEventThrottle.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/device_orientation/DeviceSensorEventController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/encryptedmedia/MediaKeySession.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/encryptedmedia/MediaKeys.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/geolocation/Geolocation.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/geolocation/testing/GeolocationClientMock.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/MediaStream.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/MediaStreamTrackSourcesRequestImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/RTCDTMFSender.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/mediastream/RTCDataChannel.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/speech/testing/PlatformSpeechSynthesizerMock.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/vibration/NavigatorVibration.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/websockets/MainThreadWebSocketChannel.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/websockets/WebSocket.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/AsyncMethodRunner.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M Source/platform/ThreadTimers.cpp View 1 chunk +11 lines, -7 lines 0 comments Download
M Source/platform/Timer.h View 6 chunks +16 lines, -6 lines 0 comments Download
M Source/platform/Timer.cpp View 1 chunk +2 lines, -1 line 0 comments Download
A Source/platform/TraceLocation.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M Source/platform/graphics/BitmapImage.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/mac/ScrollAnimatorMac.mm View 17 chunks +25 lines, -25 lines 0 comments Download
M Source/platform/scroll/Scrollbar.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/AssociatedURLLoader.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ExternalPopupMenu.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/ValidationMessageClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDevToolsFrontendImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebHelperPluginImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/FrameTestHelpers.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
eseidel
This should allow us to more easily see what's scheduling all the timers in Blink ...
6 years, 9 months ago (2014-03-08 10:03:11 UTC) #1
eseidel
https://codereview.chromium.org/189833009/diff/10001/Source/core/loader/PingLoader.cpp File Source/core/loader/PingLoader.cpp (right): https://codereview.chromium.org/189833009/diff/10001/Source/core/loader/PingLoader.cpp#newcode144 Source/core/loader/PingLoader.cpp:144: m_timeout.startOneShot(60000, FROM_HERE); This 16.7 hour timer is definitely my ...
6 years, 9 months ago (2014-03-08 10:14:53 UTC) #2
eseidel
https://codereview.chromium.org/189833009/diff/10001/Source/core/loader/PingLoader.cpp File Source/core/loader/PingLoader.cpp (right): https://codereview.chromium.org/189833009/diff/10001/Source/core/loader/PingLoader.cpp#newcode144 Source/core/loader/PingLoader.cpp:144: m_timeout.startOneShot(60000, FROM_HERE); This 16.7 hour timer is definitely my ...
6 years, 9 months ago (2014-03-08 10:14:53 UTC) #3
philipj_slow
Non-owner LGTM from HTML*Element
6 years, 9 months ago (2014-03-08 10:18:52 UTC) #4
abarth-chromium
rslgtm https://codereview.chromium.org/189833009/diff/10001/Source/platform/AsyncMethodRunner.h File Source/platform/AsyncMethodRunner.h (right): https://codereview.chromium.org/189833009/diff/10001/Source/platform/AsyncMethodRunner.h#newcode68 Source/platform/AsyncMethodRunner.h:68: m_timer.startOneShot(0, FROM_HERE); This one isn't very useful :) ...
6 years, 9 months ago (2014-03-09 22:19:09 UTC) #5
Stephen Chennney
On 2014/03/09 22:19:09, abarth wrote: > https://codereview.chromium.org/189833009/diff/10001/Source/platform/TraceLocation.h#newcode14 > Source/platform/TraceLocation.h:14: class PLATFORM_EXPORT TraceLocation { > No ...
6 years, 9 months ago (2014-03-10 14:33:34 UTC) #6
eseidel
The CQ bit was checked by eseidel@chromium.org
6 years, 9 months ago (2014-03-10 18:08:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eseidel@chromium.org/189833009/10002
6 years, 9 months ago (2014-03-10 18:08:09 UTC) #8
jamesr
nice! https://codereview.chromium.org/189833009/diff/10002/Source/platform/TraceLocation.h File Source/platform/TraceLocation.h (right): https://codereview.chromium.org/189833009/diff/10002/Source/platform/TraceLocation.h#newcode16 Source/platform/TraceLocation.h:16: // Currenetly only store the bits used in ...
6 years, 9 months ago (2014-03-10 19:41:51 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-10 19:51:36 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink
6 years, 9 months ago (2014-03-10 19:51:36 UTC) #11
eseidel
There appears to be a marauding failure in timeline/inspector. I got a different test to ...
6 years, 9 months ago (2014-03-10 20:04:15 UTC) #12
eseidel
6 years, 9 months ago (2014-03-10 20:13:49 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 manually as r168858 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698