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

Issue 2477293002: Report the size of |CSSStyleSheetResource::m_decodedSheetText| as decoded size (Closed)

Created:
4 years, 1 month ago by hiroshige
Modified:
4 years, 1 month ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-style_chromium.org, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report the size of |CSSStyleSheetResource::m_decodedSheetText| as decoded size Previously, |m_decodedSheetText| was reported as encoded data, while it is not |m_data|. This CL reports |m_decodedSheetText| as decoded data and call setEncodedSizeMemoryUsage(0) instead, to prevent |m_decodedSheetText| from being reported both as encoded and decoded data to memory-infra. This CL also makes setParsedStyleSheetCache() to always update the decoded size, while the decoded size was not updated in some call sites of setParsedStyleSheetCache(). BUG=643135 Committed: https://crrev.com/71b354672add64227227bc3dec0e5462f1e0dda4 Cr-Commit-Position: refs/heads/master@{#430521}

Patch Set 1 #

Patch Set 2 : move to setParsedStyleSheetCache #

Total comments: 5

Patch Set 3 : comment #

Total comments: 2

Patch Set 4 : setDecodedSheetText() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -6 lines) Patch
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp View 1 2 3 5 chunks +20 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 32 (21 generated)
hiroshige
PTAL, yhirano@ as core/fetch OWNER, hajimehoshi@ from memory-reporting-related viewpoints, kouhei@ as this is related to ...
4 years, 1 month ago (2016-11-07 09:17:18 UTC) #11
kouhei (in TOK)
https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode79 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:79: m_parsedStyleSheetCache->setReferencedFromResource(this); Can we add a comment here: // update ...
4 years, 1 month ago (2016-11-07 09:29:39 UTC) #12
hiroshige
https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode79 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:79: m_parsedStyleSheetCache->setReferencedFromResource(this); On 2016/11/07 09:29:39, kouhei wrote: > Can we ...
4 years, 1 month ago (2016-11-07 09:36:07 UTC) #14
kouhei (in TOK)
https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/2477293002/diff/20001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode168 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:168: updateDecodedSize(); On 2016/11/07 09:36:07, hiroshige wrote: > On 2016/11/07 ...
4 years, 1 month ago (2016-11-07 09:57:42 UTC) #17
hajimehoshi
https://codereview.chromium.org/2477293002/diff/40001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/2477293002/diff/40001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode142 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:142: updateDecodedSize(); I'd make setDecodedSheetText and call updateDecodedSize there
4 years, 1 month ago (2016-11-07 11:11:34 UTC) #18
hiroshige
https://codereview.chromium.org/2477293002/diff/40001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp File third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp (right): https://codereview.chromium.org/2477293002/diff/40001/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp#newcode142 third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp:142: updateDecodedSize(); On 2016/11/07 11:11:34, hajimehoshi wrote: > I'd make ...
4 years, 1 month ago (2016-11-07 11:41:20 UTC) #21
yhirano
lgtm
4 years, 1 month ago (2016-11-08 02:35:09 UTC) #24
hajimehoshi
lgtm
4 years, 1 month ago (2016-11-08 04:30:49 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2477293002/60001
4 years, 1 month ago (2016-11-08 04:39:56 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-08 05:03:18 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 05:05:14 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/71b354672add64227227bc3dec0e5462f1e0dda4
Cr-Commit-Position: refs/heads/master@{#430521}

Powered by Google App Engine
This is Rietveld 408576698