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

Issue 2499263002: Add UMA to estimate deroppable memory usage of encoded data size in Resources (Closed)

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

Description

Add UMA to estimate deroppable memory usage of encoded data size in Resources This CL adds a UMA to estimate droppable memory usage of encoded data size in Resources when reusing disk cache is implemented. If it is 100% sure that an encoded data is in disk cache, it is possible to remove the same data from memory to reduce memory usage, and the UMA measures this effectiveness. BUG=664437 Committed: https://crrev.com/bd79bd92221f5057521d62639b7c5e84645032ef Cr-Commit-Position: refs/heads/master@{#433491}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address on reviews #

Total comments: 5

Patch Set 3 : (rebase) #

Patch Set 4 : Address on yhirano's review #

Total comments: 2

Patch Set 5 : Use platform/Histgram.h instead of adding depencency from core to base #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -2 lines) Patch
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 4 4 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleFetchedImage.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/Histogram.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (18 generated)
hajimehoshi
PTAL
4 years, 1 month ago (2016-11-15 10:16:42 UTC) #2
yhirano
https://codereview.chromium.org/2499263002/diff/1/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2499263002/diff/1/third_party/WebKit/Source/core/fetch/Resource.h#newcode405 third_party/WebKit/Source/core/fetch/Resource.h:405: bool isReloadable() const; What does this method mean?
4 years, 1 month ago (2016-11-15 10:21:55 UTC) #3
hajimehoshi
https://codereview.chromium.org/2499263002/diff/1/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2499263002/diff/1/third_party/WebKit/Source/core/fetch/Resource.h#newcode405 third_party/WebKit/Source/core/fetch/Resource.h:405: bool isReloadable() const; On 2016/11/15 10:21:55, yhirano wrote: > ...
4 years, 1 month ago (2016-11-15 10:50:08 UTC) #4
Ilya Sherman
https://codereview.chromium.org/2499263002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2499263002/diff/1/tools/metrics/histograms/histograms.xml#newcode25922 tools/metrics/histograms/histograms.xml:25922: +<histogram name="Memory.Renderer.EstimantedDroppableEncodedSize" units="KB"> nit: s/Estimanted/Estimated (please double-check the name ...
4 years, 1 month ago (2016-11-16 06:33:35 UTC) #5
hajimehoshi
Thank you! BTW, what's the difference between tools/histograms/histograms.xml and tools/metrics/histograms/histograms.xml? https://codereview.chromium.org/2499263002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2499263002/diff/1/tools/metrics/histograms/histograms.xml#newcode25922 ...
4 years, 1 month ago (2016-11-16 09:59:10 UTC) #8
yhirano
https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.h:221: bool m_isRefetchableFromDiskCache; How about having a function that turns ...
4 years, 1 month ago (2016-11-16 11:25:38 UTC) #11
hajimehoshi
Thank you! https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.h:221: bool m_isRefetchableFromDiskCache; On 2016/11/16 11:25:38, yhirano wrote: ...
4 years, 1 month ago (2016-11-16 12:15:48 UTC) #13
hajimehoshi
https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.h:221: bool m_isRefetchableFromDiskCache; On 2016/11/16 12:15:48, hajimehoshi wrote: > On ...
4 years, 1 month ago (2016-11-16 12:19:49 UTC) #16
Ilya Sherman
Metrics LGTM, thanks. On 2016/11/16 09:59:10, hajimehoshi wrote: > BTW, what's the difference between tools/histograms/histograms.xml ...
4 years, 1 month ago (2016-11-16 23:46:06 UTC) #19
yhirano
lgtm https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h File third_party/WebKit/Source/core/fetch/ImageResource.h (right): https://codereview.chromium.org/2499263002/diff/20001/third_party/WebKit/Source/core/fetch/ImageResource.h#newcode221 third_party/WebKit/Source/core/fetch/ImageResource.h:221: bool m_isRefetchableFromDiskCache; On 2016/11/16 12:19:48, hajimehoshi wrote: > ...
4 years, 1 month ago (2016-11-17 02:16:56 UTC) #20
haraken
Sorry for the review delay. However, I don't quite understand why you want to measure ...
4 years, 1 month ago (2016-11-17 05:06:28 UTC) #21
hajimehoshi
On 2016/11/17 05:06:28, haraken wrote: > Sorry for the review delay. > > However, I ...
4 years, 1 month ago (2016-11-17 05:32:28 UTC) #22
haraken
On 2016/11/17 05:32:28, hajimehoshi wrote: > On 2016/11/17 05:06:28, haraken wrote: > > Sorry for ...
4 years, 1 month ago (2016-11-17 05:54:09 UTC) #23
hajimehoshi
On 2016/11/17 05:54:09, haraken wrote: > On 2016/11/17 05:32:28, hajimehoshi wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 07:53:54 UTC) #26
haraken
On 2016/11/17 07:53:54, hajimehoshi wrote: > On 2016/11/17 05:54:09, haraken wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 08:08:39 UTC) #27
hajimehoshi
On 2016/11/17 08:08:39, haraken wrote: > On 2016/11/17 07:53:54, hajimehoshi wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 09:08:20 UTC) #28
hajimehoshi
https://codereview.chromium.org/2499263002/diff/80001/third_party/WebKit/Source/core/fetch/DEPS File third_party/WebKit/Source/core/fetch/DEPS (right): https://codereview.chromium.org/2499263002/diff/80001/third_party/WebKit/Source/core/fetch/DEPS#newcode2 third_party/WebKit/Source/core/fetch/DEPS:2: "+base/metrics/histogram_macros.h", On 2016/11/17 02:16:56, yhirano wrote: > I don't ...
4 years, 1 month ago (2016-11-17 09:20:00 UTC) #29
haraken
On 2016/11/17 09:08:20, hajimehoshi wrote: > On 2016/11/17 08:08:39, haraken wrote: > > On 2016/11/17 ...
4 years, 1 month ago (2016-11-17 15:11:43 UTC) #32
haraken
Discussed offline -- sorry, I was misunderstanding the point of this CL. LGTM.
4 years, 1 month ago (2016-11-21 05:21:19 UTC) #33
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/2499263002/100001
4 years, 1 month ago (2016-11-21 05:28:11 UTC) #36
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 1 month ago (2016-11-21 07:36:57 UTC) #38
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 07:38:51 UTC) #40
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bd79bd92221f5057521d62639b7c5e84645032ef
Cr-Commit-Position: refs/heads/master@{#433491}

Powered by Google App Engine
This is Rietveld 408576698