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

Side by Side Diff: chrome/browser/metrics/metrics_memory_details.cc

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/metrics/metrics_memory_details.h" 5 #include "chrome/browser/metrics/metrics_memory_details.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "components/nacl/common/nacl_process_type.h" 17 #include "components/nacl/common/nacl_process_type.h"
18 #include "content/public/browser/render_process_host.h" 18 #include "content/public/browser/render_process_host.h"
19 #include "content/public/common/content_constants.h" 19 #include "content/public/common/content_constants.h"
20 #include "content/public/common/process_type.h" 20 #include "content/public/common/process_type.h"
21 21
22 MemoryGrowthTracker::MemoryGrowthTracker() { 22 MemoryGrowthTracker::MemoryGrowthTracker() {
23 } 23 }
24 24
25 MemoryGrowthTracker::~MemoryGrowthTracker() { 25 MemoryGrowthTracker::~MemoryGrowthTracker() {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 UMA_HISTOGRAM_CUSTOM_COUNTS("Memory.Swap.NumWrites", swap_info().num_writes, 297 UMA_HISTOGRAM_CUSTOM_COUNTS("Memory.Swap.NumWrites", swap_info().num_writes,
298 1, 100000000, 100); 298 1, 100000000, 100);
299 299
300 if (swap_info().orig_data_size > 0 && swap_info().compr_data_size > 0) { 300 if (swap_info().orig_data_size > 0 && swap_info().compr_data_size > 0) {
301 UMA_HISTOGRAM_CUSTOM_COUNTS( 301 UMA_HISTOGRAM_CUSTOM_COUNTS(
302 "Memory.Swap.CompressionRatio", 302 "Memory.Swap.CompressionRatio",
303 swap_info().orig_data_size / swap_info().compr_data_size, 1, 20, 20); 303 swap_info().orig_data_size / swap_info().compr_data_size, 1, 20, 20);
304 } 304 }
305 } 305 }
306 #endif // defined(OS_CHROMEOS) 306 #endif // defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/memory/tab_manager.cc ('k') | chrome/browser/metrics/perf/perf_provider_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698