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

Side by Side Diff: net/disk_cache/eviction.cc

Issue 99214: Fix a few broken histograms. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The eviction policy is a very simple pure LRU, so the elements at the end of 5 // The eviction policy is a very simple pure LRU, so the elements at the end of
6 // the list are evicted until kCleanUpMargin free space is available. There is 6 // the list are evicted until kCleanUpMargin free space is available. There is
7 // only one list in use (Rankings::NO_USE), and elements are sent to the front 7 // only one list in use (Rankings::NO_USE), and elements are sent to the front
8 // of the list whenever they are accessed. 8 // of the list whenever they are accessed.
9 9
10 // The new (in-development) eviction policy ads re-use as a factor to evict 10 // The new (in-development) eviction policy ads re-use as a factor to evict
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if (last1.get()) 430 if (last1.get())
431 CACHE_UMA(AGE, "NoUseAge", header_->experiment, 431 CACHE_UMA(AGE, "NoUseAge", header_->experiment,
432 Time::FromInternalValue(last1.get()->Data()->last_used)); 432 Time::FromInternalValue(last1.get()->Data()->last_used));
433 if (last2.get()) 433 if (last2.get())
434 CACHE_UMA(AGE, "LowUseAge", header_->experiment, 434 CACHE_UMA(AGE, "LowUseAge", header_->experiment,
435 Time::FromInternalValue(last2.get()->Data()->last_used)); 435 Time::FromInternalValue(last2.get()->Data()->last_used));
436 if (last3.get()) 436 if (last3.get())
437 CACHE_UMA(AGE, "HighUseAge", header_->experiment, 437 CACHE_UMA(AGE, "HighUseAge", header_->experiment,
438 Time::FromInternalValue(last3.get()->Data()->last_used)); 438 Time::FromInternalValue(last3.get()->Data()->last_used));
439 if (last4.get()) 439 if (last4.get())
440 CACHE_UMA(AGE, "DeletedUseAge", header_->experiment, 440 CACHE_UMA(AGE, "DeletedAge", header_->experiment,
441 Time::FromInternalValue(last4.get()->Data()->last_used)); 441 Time::FromInternalValue(last4.get()->Data()->last_used));
442 } 442 }
443 443
444 } // namespace disk_cache 444 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/backend_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698