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

Issue 148323002: Add histograms to ResourceFetcher to evaluate memory cache hit rate (Closed)

Created:
6 years, 11 months ago by clamy
Modified:
6 years, 10 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@histogram-unload-frequency
Visibility:
Public.

Description

Add histograms to ResourceFetcher to evaluate memory cache hit rate This is a rework of https://chromiumcodereview.appspot.com/23734006 that was reverted due to a regression in PLT. This patch introduces three histograms that measures the count of dead resources used from cache, revalidated, or loaded again. This will drive possible improvements that could be made to the cache to decrease memory usage on Android. BUG=290193 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166121

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Switched to a helper class #

Total comments: 3

Patch Set 4 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -0 lines) Patch
M Source/core/fetch/ResourceFetcher.h View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/fetch/ResourceFetcher.cpp View 1 2 3 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
clamy
abarth, pliard: PTAL This is an attempt at relanding the metrics for hit rate in ...
6 years, 10 months ago (2014-01-28 12:29:53 UTC) #1
abarth-chromium
+japhet
6 years, 10 months ago (2014-01-28 20:18:09 UTC) #2
Nate Chapin
https://chromiumcodereview.appspot.com/148323002/diff/40001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://chromiumcodereview.appspot.com/148323002/diff/40001/Source/core/fetch/ResourceFetcher.cpp#newcode642 Source/core/fetch/ResourceFetcher.cpp:642: ++m_loadCount; Would it be cleaner to wrap these variables ...
6 years, 10 months ago (2014-01-28 20:22:54 UTC) #3
clamy
https://chromiumcodereview.appspot.com/148323002/diff/40001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://chromiumcodereview.appspot.com/148323002/diff/40001/Source/core/fetch/ResourceFetcher.cpp#newcode642 Source/core/fetch/ResourceFetcher.cpp:642: ++m_loadCount; On 2014/01/28 20:22:54, Nate Chapin wrote: > Would ...
6 years, 10 months ago (2014-01-29 12:19:20 UTC) #4
Nate Chapin
LGTM w/nits https://chromiumcodereview.appspot.com/148323002/diff/80001/Source/core/fetch/ResourceFetcher.cpp File Source/core/fetch/ResourceFetcher.cpp (right): https://chromiumcodereview.appspot.com/148323002/diff/80001/Source/core/fetch/ResourceFetcher.cpp#newcode635 Source/core/fetch/ResourceFetcher.cpp:635: if (!resource->hasClients()) We null-check resource just below ...
6 years, 10 months ago (2014-01-29 18:19:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/clamy@chromium.org/148323002/100001
6 years, 10 months ago (2014-01-30 10:27:38 UTC) #6
commit-bot: I haz the power
Change committed as 166121
6 years, 10 months ago (2014-01-30 11:32:57 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 11:33:03 UTC) #8
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698