diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-17 21:59:29 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-17 21:59:29 +0000 |
commit | 57c4b8582403c0afe4cdae1996cf9111e824c40d (patch) | |
tree | 8742d3e1d017976d009948920351e51293d73b37 /chrome/browser/memory_details.cc | |
parent | 580522638fdabb4d48fe2eae68f263f61fda3129 (diff) | |
download | chromium_src-57c4b8582403c0afe4cdae1996cf9111e824c40d.zip chromium_src-57c4b8582403c0afe4cdae1996cf9111e824c40d.tar.gz chromium_src-57c4b8582403c0afe4cdae1996cf9111e824c40d.tar.bz2 |
cap the number of tabs in the backing store cache
BUG=19353
TEST=None
Review URL: http://codereview.chromium.org/165538
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/memory_details.cc')
-rw-r--r-- | chrome/browser/memory_details.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc index df81bc3..124d33c 100644 --- a/chrome/browser/memory_details.cc +++ b/chrome/browser/memory_details.cc @@ -10,6 +10,7 @@ #include "base/string_util.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/chrome_thread.h" +#include "chrome/browser/renderer_host/backing_store_manager.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/tab_contents/navigation_entry.h" #include "chrome/browser/tab_contents/tab_contents.h" @@ -276,7 +277,7 @@ void MemoryDetails::CollectChildInfoOnUIThread() { void MemoryDetails::UpdateHistograms() { // Reports a set of memory metrics to UMA. - // Memory is measured in units of 10KB. + // Memory is measured in KB. ProcessData browser = process_data_[CHROME_BROWSER]; size_t aggregate_memory = 0; @@ -302,6 +303,8 @@ void MemoryDetails::UpdateHistograms() { break; } } + UMA_HISTOGRAM_MEMORY_KB("Memory.BackingStore", + BackingStoreManager::MemorySize() / 1024); UMA_HISTOGRAM_COUNTS_100("Memory.ProcessCount", static_cast<int>(browser.processes.size())); |