OLD | NEW |
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 /** @constructor */ | 5 /** @constructor */ |
6 function TaskManager() { } | 6 function TaskManager() { } |
7 | 7 |
8 cr.addSingletonGetter(TaskManager); | 8 cr.addSingletonGetter(TaskManager); |
9 | 9 |
10 /* | 10 /* |
11 * Default columns (column_id, label_id, width, is_default) | 11 * Default columns (column_id, label_id, width, is_default) |
12 * @const | 12 * @const |
13 */ | 13 */ |
14 var DEFAULT_COLUMNS = [ | 14 var DEFAULT_COLUMNS = [ |
15 ['title', 'PAGE_COLUMN', 300, true], | 15 ['title', 'PAGE_COLUMN', 300, true], |
| 16 ['profileName', 'PROFILE_NAME_COLUMN', 120, false], |
16 ['physicalMemory', 'PHYSICAL_MEM_COLUMN', 80, true], | 17 ['physicalMemory', 'PHYSICAL_MEM_COLUMN', 80, true], |
17 ['sharedMemory', 'SHARED_MEM_COLUMN', 80, false], | 18 ['sharedMemory', 'SHARED_MEM_COLUMN', 80, false], |
18 ['privateMemory', 'PRIVATE_MEM_COLUMN', 80, false], | 19 ['privateMemory', 'PRIVATE_MEM_COLUMN', 80, false], |
19 ['cpuUsage', 'CPU_COLUMN', 80, true], | 20 ['cpuUsage', 'CPU_COLUMN', 80, true], |
20 ['networkUsage', 'NET_COLUMN', 85, true], | 21 ['networkUsage', 'NET_COLUMN', 85, true], |
21 ['processId', 'PROCESS_ID_COLUMN', 100, false], | 22 ['processId', 'PROCESS_ID_COLUMN', 100, false], |
22 ['webCoreImageCacheSize', 'WEBCORE_IMAGE_CACHE_COLUMN', 120, false], | 23 ['webCoreImageCacheSize', 'WEBCORE_IMAGE_CACHE_COLUMN', 120, false], |
23 ['webCoreScriptsCacheSize', 'WEBCORE_SCRIPTS_CACHE_COLUMN', 120, false], | 24 ['webCoreScriptsCacheSize', 'WEBCORE_SCRIPTS_CACHE_COLUMN', 120, false], |
24 ['webCoreCSSCacheSize', 'WEBCORE_CSS_CACHE_COLUMN', 120, false], | 25 ['webCoreCSSCacheSize', 'WEBCORE_CSS_CACHE_COLUMN', 120, false], |
25 ['fps', 'FPS_COLUMN', 50, true], | 26 ['fps', 'FPS_COLUMN', 50, true], |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 taskmanager.onTaskChange(start, length, tasks); | 394 taskmanager.onTaskChange(start, length, tasks); |
394 } | 395 } |
395 | 396 |
396 function taskRemoved(start, length) { | 397 function taskRemoved(start, length) { |
397 // Sometimes this can get called too early. | 398 // Sometimes this can get called too early. |
398 if (!taskmanager) | 399 if (!taskmanager) |
399 return; | 400 return; |
400 taskmanager.onTaskRemove(start, length); | 401 taskmanager.onTaskRemove(start, length); |
401 } | 402 } |
402 | 403 |
OLD | NEW |