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

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

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/file_version_info.h" 7 #include "base/file_version_info.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/bindings_policy.h"
15 #include "chrome/common/extensions/extension.h" 14 #include "chrome/common/extensions/extension.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "content/browser/browser_child_process_host.h" 16 #include "content/browser/browser_child_process_host.h"
18 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
19 #include "content/browser/renderer_host/backing_store_manager.h" 18 #include "content/browser/renderer_host/backing_store_manager.h"
20 #include "content/browser/renderer_host/render_process_host.h" 19 #include "content/browser/renderer_host/render_process_host.h"
21 #include "content/browser/renderer_host/render_view_host.h" 20 #include "content/browser/renderer_host/render_view_host.h"
22 #include "content/browser/tab_contents/navigation_entry.h" 21 #include "content/browser/tab_contents/navigation_entry.h"
23 #include "content/browser/tab_contents/tab_contents.h" 22 #include "content/browser/tab_contents/tab_contents.h"
23 #include "content/common/bindings_policy.h"
24 #include "grit/chromium_strings.h" 24 #include "grit/chromium_strings.h"
25 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
26 #include "ui/base/l10n/l10n_util.h" 26 #include "ui/base/l10n/l10n_util.h"
27 27
28 #if defined(OS_LINUX) 28 #if defined(OS_LINUX)
29 #include "content/browser/zygote_host_linux.h" 29 #include "content/browser/zygote_host_linux.h"
30 #include "content/browser/renderer_host/render_sandbox_host_linux.h" 30 #include "content/browser/renderer_host/render_sandbox_host_linux.h"
31 #endif 31 #endif
32 32
33 ProcessMemoryInformation::ProcessMemoryInformation() 33 ProcessMemoryInformation::ProcessMemoryInformation()
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 UMA_HISTOGRAM_COUNTS_100("Memory.OtherProcessCount", other_count); 349 UMA_HISTOGRAM_COUNTS_100("Memory.OtherProcessCount", other_count);
350 UMA_HISTOGRAM_COUNTS_100("Memory.PluginProcessCount", plugin_count); 350 UMA_HISTOGRAM_COUNTS_100("Memory.PluginProcessCount", plugin_count);
351 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count); 351 UMA_HISTOGRAM_COUNTS_100("Memory.RendererProcessCount", renderer_count);
352 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count); 352 UMA_HISTOGRAM_COUNTS_100("Memory.WorkerProcessCount", worker_count);
353 // TODO(viettrungluu): Do we want separate counts for the other 353 // TODO(viettrungluu): Do we want separate counts for the other
354 // (platform-specific) process types? 354 // (platform-specific) process types?
355 355
356 int total_sample = static_cast<int>(aggregate_memory / 1000); 356 int total_sample = static_cast<int>(aggregate_memory / 1000);
357 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample); 357 UMA_HISTOGRAM_MEMORY_MB("Memory.Total", total_sample);
358 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698