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

Issue 1413233005: tracing: Report ResourceClients and the reason for not deletable for web-caches (Closed)

Created:
5 years, 1 month ago by hiroshige
Modified:
5 years, 1 month ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, webcomponents-bugzilla_chromium.org, dshwang, eae+blinkwatch, fs, eric.carlson_apple.com, apavlov+blink_chromium.org, kinuko+watch, kouhei+svg_chromium.org, Stephen Chennney, rwlbuis, Yoav Weiss, krit, blink-reviews-css, blink-reviews-html_chromium.org, yurys+blink_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, jchaffraix+rendering, devtools-reviews_chromium.org, blink-reviews, gyuyoung2, loading-reviews_chromium.org, pdr+svgwatchlist_chromium.org, nessy, blink-reviews-style_chromium.org, zoltan1, blink-reviews-paint_chromium.org, blink-reviews-layout_chromium.org, sof, caseq+blink_chromium.org, lushnikov+blink_chromium.org, feature-media-reviews_chromium.org, darktears, loading-reviews+fetch_chromium.org, Nate Chapin, vcarbune.chromium, philipj_slow, tyoshino+watch_chromium.org, gavinp+prerender_chromium.org, mlamouri+watch-blink_chromium.org, tfarina, pdr+renderingwatchlist_chromium.org, gasubic, leviw+renderwatch, slimming-paint-reviews_chromium.org, pfeldman+blink_chromium.org, f(malita), sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

tracing: Report ResourceClients and the reason for not deletable for web-caches This CL adds - Resource::reasonNotDeletable() (mostly corresponds to canDelete()) - ResourceClient::debugName() and its overrides that are used in Resource::onMemoryDump(). This CL utilizes already-defined LayoutObject::debugName(), and makes it to be an override of ResourceClient::debugName(). BUG=549445 Committed: https://crrev.com/2a3f374c912c0ea77d488821d7b67b50a1fe84a7 Cr-Commit-Position: refs/heads/master@{#358735}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Patch Set 4 : Style fix. #

Patch Set 5 : #

Patch Set 6 : Rebase+ #

Total comments: 14

Patch Set 7 : Reflect comments. #

Total comments: 4

Patch Set 8 : Reflected haraken's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -6 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSCrossfadeValue.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/StyleRuleImport.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/PendingScript.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ProcessingInstruction.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/ScriptLoader.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/DocumentResourceReference.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MockImageResourceClient.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/RawResourceTest.cpp View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 6 7 3 chunks +78 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ResourceClient.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLLinkElement.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTrackElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLViewSourceDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/MediaDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/PluginDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/TextDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/imports/HTMLImportLoader.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/parser/HTMLScriptRunner.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentLoader.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/LinkLoader.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/SinkDocument.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/TextTrackLoader.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImageSet.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFEImageElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGImageLoader.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/xml/parser/XMLDocumentParser.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebDataSourceImpl.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233005/80001
5 years, 1 month ago (2015-10-29 09:37:42 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/87504) ios_rel_device_ninja on ...
5 years, 1 month ago (2015-10-29 09:40:24 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233005/140001
5 years, 1 month ago (2015-10-30 05:55:17 UTC) #8
hiroshige
PTAL. Changes other than in Resource.h/Resource.cpp are adding debugName() overrides. Screenshot is included in: https://drive.google.com/a/google.com/file/d/0BzNRZJOK3W0HRVFZZmUxc20wcXc/view?usp=sharing
5 years, 1 month ago (2015-10-30 06:30:46 UTC) #13
bashi
Thanks for the work, hiroshige-san! +primiano I'm not sure putting this kind of detailed information ...
5 years, 1 month ago (2015-10-30 06:45:49 UTC) #15
bashi
On 2015/10/30 06:45:49, bashi1 wrote: > Thanks for the work, hiroshige-san! > > +primiano > ...
5 years, 1 month ago (2015-10-30 06:48:05 UTC) #16
ssid
I think it is fine to have this information if it is useful. It could ...
5 years, 1 month ago (2015-10-30 07:00:31 UTC) #17
hiroshige
https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode543 third_party/WebKit/Source/core/fetch/Resource.cpp:543: builder.append("m_loader"); On 2015/10/30 07:00:31, ssid wrote: > Can we ...
5 years, 1 month ago (2015-10-30 07:34:33 UTC) #19
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-30 08:19:05 UTC) #21
Primiano Tucci (use gerrit)
On 2015/10/30 08:19:05, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
5 years, 1 month ago (2015-10-30 10:15:53 UTC) #23
kouhei (in TOK)
lgtm % nits https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp (right): https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp#newcode139 third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp:139: String debugName() const override { return ...
5 years, 1 month ago (2015-11-02 04:16:28 UTC) #25
hiroshige
Updated CL description to mention LayoutObject::debugName(). https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp (right): https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp#newcode139 third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp:139: String debugName() const ...
5 years, 1 month ago (2015-11-02 05:22:07 UTC) #27
kouhei (in TOK)
On 2015/11/02 05:22:07, hiroshige wrote: > Updated CL description to mention LayoutObject::debugName(). > > https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerTest.cpp ...
5 years, 1 month ago (2015-11-02 07:05:03 UTC) #28
kinuko
Non-owner fyi comment https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode543 third_party/WebKit/Source/core/fetch/Resource.cpp:543: builder.append("m_loader"); On 2015/10/30 07:34:33, hiroshige wrote: ...
5 years, 1 month ago (2015-11-02 07:41:57 UTC) #29
Primiano Tucci (use gerrit)
OK I applied the patch and took a look. This is effectively less invasive than ...
5 years, 1 month ago (2015-11-02 17:14:01 UTC) #30
Nate Chapin
FYI, I'm planning on substantially simplifying Resource lifetime soon. Once https://chromium.googlesource.com/chromium/src/+/aadbd2624c5003698624cf2e21fd6ae876e28629 has baked for a ...
5 years, 1 month ago (2015-11-02 18:36:51 UTC) #32
ssid
LGTM, sorry for the delay. Thanks for adding this. https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode543 third_party/WebKit/Source/core/fetch/Resource.cpp:543: ...
5 years, 1 month ago (2015-11-04 12:12:57 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233005/160001
5 years, 1 month ago (2015-11-09 18:05:14 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-09 20:45:04 UTC) #37
hiroshige
Reflected comments. haraken@, could you take a look as a core/web/bindings OWNER? https://codereview.chromium.org/1413233005/diff/140001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp ...
5 years, 1 month ago (2015-11-09 20:53:58 UTC) #38
haraken
LGTM https://codereview.chromium.org/1413233005/diff/160001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1413233005/diff/160001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode809 third_party/WebKit/Source/core/fetch/Resource.cpp:809: ResourceClientWalker<ResourceClient> w(m_clients); w => walker https://codereview.chromium.org/1413233005/diff/160001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode810 third_party/WebKit/Source/core/fetch/Resource.cpp:810: while ...
5 years, 1 month ago (2015-11-09 23:30:20 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233005/180001
5 years, 1 month ago (2015-11-09 23:44:34 UTC) #41
hiroshige
https://codereview.chromium.org/1413233005/diff/160001/third_party/WebKit/Source/core/fetch/Resource.cpp File third_party/WebKit/Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/1413233005/diff/160001/third_party/WebKit/Source/core/fetch/Resource.cpp#newcode809 third_party/WebKit/Source/core/fetch/Resource.cpp:809: ResourceClientWalker<ResourceClient> w(m_clients); On 2015/11/09 23:30:20, haraken wrote: > > ...
5 years, 1 month ago (2015-11-10 00:12:11 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1413233005/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1413233005/180001
5 years, 1 month ago (2015-11-10 00:13:43 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:180001)
5 years, 1 month ago (2015-11-10 01:47:52 UTC) #47
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 01:48:58 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2a3f374c912c0ea77d488821d7b67b50a1fe84a7
Cr-Commit-Position: refs/heads/master@{#358735}

Powered by Google App Engine
This is Rietveld 408576698