| OLD | NEW |
| 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_manager/task_manager_browsertest_util.h" | 5 #include "chrome/browser/task_manager/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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 int64_t GetColumnValue(int index) { | 101 int64_t GetColumnValue(int index) { |
| 102 return task_manager_tester_->GetColumnValue(column_specifier_, index); | 102 return task_manager_tester_->GetColumnValue(column_specifier_, index); |
| 103 } | 103 } |
| 104 | 104 |
| 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::PROCESS_ID: |
| 110 return "Process ID"; |
| 111 case ColumnSpecifier::PHYSICAL_MEMORY: |
| 112 return "Physical Memory"; |
| 109 case ColumnSpecifier::V8_MEMORY: | 113 case ColumnSpecifier::V8_MEMORY: |
| 110 return "V8 Memory"; | 114 return "V8 Memory"; |
| 111 case ColumnSpecifier::V8_MEMORY_USED: | 115 case ColumnSpecifier::V8_MEMORY_USED: |
| 112 return "V8 Memory Used"; | 116 return "V8 Memory Used"; |
| 113 case ColumnSpecifier::SQLITE_MEMORY_USED: | 117 case ColumnSpecifier::SQLITE_MEMORY_USED: |
| 114 return "SQLite Memory Used"; | 118 return "SQLite Memory Used"; |
| 115 case ColumnSpecifier::IDLE_WAKEUPS: | 119 case ColumnSpecifier::IDLE_WAKEUPS: |
| 116 return "Idle wake ups"; | 120 return "Idle wake ups"; |
| 117 case ColumnSpecifier::MEMORY_STATE: | 121 case ColumnSpecifier::MEMORY_STATE: |
| 118 return "Memory State"; | 122 return "Memory State"; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 base::string16 MatchUtility(const base::string16& title) { | 253 base::string16 MatchUtility(const base::string16& title) { |
| 250 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title); | 254 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title); |
| 251 } | 255 } |
| 252 | 256 |
| 253 base::string16 MatchAnyUtility() { | 257 base::string16 MatchAnyUtility() { |
| 254 return MatchUtility(base::ASCIIToUTF16("*")); | 258 return MatchUtility(base::ASCIIToUTF16("*")); |
| 255 } | 259 } |
| 256 | 260 |
| 257 } // namespace browsertest_util | 261 } // namespace browsertest_util |
| 258 } // namespace task_manager | 262 } // namespace task_manager |
| OLD | NEW |