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

Unified Diff: chrome/browser/memory_details.cc

Issue 165538: cap the number of tabs in the backing store cache (Closed)
Patch Set: fix git weird upload Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory_details.cc
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
index ccf279e7231684cf31a9c5135f15745280ac0b92..f817436a905d49c069c553c9047a608acccffb30 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()));
« no previous file with comments | « no previous file | chrome/browser/renderer_host/backing_store_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698