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

Side by Side Diff: chrome/browser/task_management/task_manager_browsertest_util.cc

Issue 2178733002: Task manager should support Idle Wakeups on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling missing results in OnRefreshDone. Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/task_management/task_manager_browsertest_util.h" 5 #include "chrome/browser/task_management/task_manager_browsertest_util.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const char* GetColumnName() { 105 const char* GetColumnName() {
106 switch (column_specifier_) { 106 switch (column_specifier_) {
107 case ColumnSpecifier::COLUMN_NONE: 107 case ColumnSpecifier::COLUMN_NONE:
108 return "N/A"; 108 return "N/A";
109 case ColumnSpecifier::V8_MEMORY: 109 case ColumnSpecifier::V8_MEMORY:
110 return "V8 Memory"; 110 return "V8 Memory";
111 case ColumnSpecifier::V8_MEMORY_USED: 111 case ColumnSpecifier::V8_MEMORY_USED:
112 return "V8 Memory Used"; 112 return "V8 Memory Used";
113 case ColumnSpecifier::SQLITE_MEMORY_USED: 113 case ColumnSpecifier::SQLITE_MEMORY_USED:
114 return "SQLite Memory Used"; 114 return "SQLite Memory Used";
115 case ColumnSpecifier::IDLE_WAKEUPS:
116 return "Idle wake ups";
ncarter (slow) 2016/08/03 22:28:55 FYI: You'll hit some conflicts when you sync (avi
115 } 117 }
116 return "N/A"; 118 return "N/A";
117 } 119 }
118 120
119 void OnTimeout() { 121 void OnTimeout() {
120 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, 122 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
121 run_loop_.QuitClosure()); 123 run_loop_.QuitClosure());
122 FAIL() << "Timed out.\n" << DumpTaskManagerModel(); 124 FAIL() << "Timed out.\n" << DumpTaskManagerModel();
123 } 125 }
124 126
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 base::string16 MatchUtility(const base::string16& title) { 247 base::string16 MatchUtility(const base::string16& title) {
246 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title); 248 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title);
247 } 249 }
248 250
249 base::string16 MatchAnyUtility() { 251 base::string16 MatchAnyUtility() {
250 return MatchUtility(base::ASCIIToUTF16("*")); 252 return MatchUtility(base::ASCIIToUTF16("*"));
251 } 253 }
252 254
253 } // namespace browsertest_util 255 } // namespace browsertest_util
254 } // namespace task_management 256 } // namespace task_management
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698