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

Unified Diff: chrome/browser/memory_details.cc

Issue 11187004: MemoryDetails::UpdateHistograms() needs an entry for PROCESS_TYPE_PPAPI_BROKER (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | no next file » | 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 8c3a6c2c075c94424e095009bcd7d021ae906d10..d0781f000468e32f8b7e525d220b09acd157fa9e 100644
--- a/chrome/browser/memory_details.cc
+++ b/chrome/browser/memory_details.cc
@@ -371,6 +371,7 @@ void MemoryDetails::UpdateHistograms() {
int extension_count = 0;
int plugin_count = 0;
int pepper_plugin_count = 0;
+ int pepper_plugin_broker_count = 0;
int renderer_count = 0;
int other_count = 0;
int worker_count = 0;
@@ -441,6 +442,10 @@ void MemoryDetails::UpdateHistograms() {
UMA_HISTOGRAM_MEMORY_KB("Memory.PepperPlugin", sample);
pepper_plugin_count++;
break;
+ case content::PROCESS_TYPE_PPAPI_BROKER:
+ UMA_HISTOGRAM_MEMORY_KB("Memory.PepperPluginBroker", sample);
+ pepper_plugin_broker_count++;
+ break;
default:
NOTREACHED();
break;
@@ -457,6 +462,8 @@ void MemoryDetails::UpdateHistograms() {
UMA_HISTOGRAM_COUNTS_100("Memory.PluginProcessCount", plugin_count);
UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginProcessCount",
pepper_plugin_count);
+ UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginBrokerProcessCount",
+ pepper_plugin_broker_count);
UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count);
UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count);
// TODO(viettrungluu): Do we want separate counts for the other
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698