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

Side by Side Diff: chrome/browser/memory_details.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/memory_purger.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/memory_details.h" 5 #include "chrome/browser/memory_details.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_version_info.h" 8 #include "base/file_version_info.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 20 matching lines...) Expand all
31 #include "grit/generated_resources.h" 31 #include "grit/generated_resources.h"
32 #include "ui/base/l10n/l10n_util.h" 32 #include "ui/base/l10n/l10n_util.h"
33 33
34 #if defined(OS_POSIX) && !defined(OS_MACOSX) 34 #if defined(OS_POSIX) && !defined(OS_MACOSX)
35 #include "content/public/browser/zygote_host_linux.h" 35 #include "content/public/browser/zygote_host_linux.h"
36 #endif 36 #endif
37 37
38 using content::BrowserChildProcessHostIterator; 38 using content::BrowserChildProcessHostIterator;
39 using content::BrowserThread; 39 using content::BrowserThread;
40 using content::NavigationEntry; 40 using content::NavigationEntry;
41 using content::RenderViewHost;
42 using content::RenderWidgetHost;
41 using content::WebContents; 43 using content::WebContents;
42 44
43 // static 45 // static
44 std::string ProcessMemoryInformation::GetRendererTypeNameInEnglish( 46 std::string ProcessMemoryInformation::GetRendererTypeNameInEnglish(
45 RendererProcessType type) { 47 RendererProcessType type) {
46 switch (type) { 48 switch (type) {
47 case RENDERER_NORMAL: 49 case RENDERER_NORMAL:
48 return "Tab"; 50 return "Tab";
49 case RENDERER_CHROME: 51 case RENDERER_CHROME:
50 return "Tab (Chrome)"; 52 return "Tab (Chrome)";
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginProcessCount", 429 UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginProcessCount",
428 pepper_plugin_count); 430 pepper_plugin_count);
429 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count); 431 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count);
430 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count); 432 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count);
431 // TODO(viettrungluu): Do we want separate counts for the other 433 // TODO(viettrungluu): Do we want separate counts for the other
432 // (platform-specific) process types? 434 // (platform-specific) process types?
433 435
434 int total_sample = static_cast<int>(aggregate_memory / 1000); 436 int total_sample = static_cast<int>(aggregate_memory / 1000);
435 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample); 437 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample);
436 } 438 }
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader.cc ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698