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

Side by Side Diff: chrome/browser/resources/task_manager/main.js

Issue 7983059: Add Profile-name column to the WebUI Task Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/task_manager_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/task_manager_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698