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

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

Issue 8760012: Move view_types.h to view_type.h, since that's the standard name for enums. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/extensions/extension_process_manager.h" 13 #include "chrome/browser/extensions/extension_process_manager.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/common/chrome_view_types.h" 16 #include "chrome/common/chrome_view_type.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
19 #include "content/browser/browser_child_process_host.h" 19 #include "content/browser/browser_child_process_host.h"
20 #include "content/browser/renderer_host/backing_store_manager.h" 20 #include "content/browser/renderer_host/backing_store_manager.h"
21 #include "content/browser/renderer_host/render_view_host.h" 21 #include "content/browser/renderer_host/render_view_host.h"
22 #include "content/browser/tab_contents/navigation_entry.h" 22 #include "content/browser/tab_contents/navigation_entry.h"
23 #include "content/browser/tab_contents/tab_contents.h" 23 #include "content/browser/tab_contents/tab_contents.h"
24 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
25 #include "content/public/browser/render_process_host.h" 25 #include "content/public/browser/render_process_host.h"
26 #include "content/public/common/bindings_policy.h" 26 #include "content/public/common/bindings_policy.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginProcessCount", 419 UMA_HISTOGRAM_COUNTS_100("Memory.PepperPluginProcessCount",
420 pepper_plugin_count); 420 pepper_plugin_count);
421 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count); 421 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count);
422 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count); 422 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count);
423 // TODO(viettrungluu): Do we want separate counts for the other 423 // TODO(viettrungluu): Do we want separate counts for the other
424 // (platform-specific) process types? 424 // (platform-specific) process types?
425 425
426 int total_sample = static_cast<int>(aggregate_memory / 1000); 426 int total_sample = static_cast<int>(aggregate_memory / 1000);
427 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample); 427 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample);
428 } 428 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/network_delay_listener_unittest.cc ('k') | chrome/browser/notifications/balloon_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698