1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 /** 6 * Whether task manager shows 'Private Memory' instead of 'Phsical Memory'. 7 * @const 8 */ 9 var USE_PRIVATE_MEM = false; 10 // <if expr="(is_linux or pp_ifdef('chromeos'))"> 11 // On Linux and ChromeOS, this is true because calculating Phsical Memory is 12 // slow. 13 USE_PRIVATE_MEM = true; 14 // </if> 15 16 /* 17 * Default columns (column_id, label_id, width, is_default) 18 * @const 19 */ 20 var DEFAULT_COLUMNS = [ 21 ['title', 'taskColumn', 300, true], 22 ['profileName', 'profileNameColumn', 120, false], 23 ['physicalMemory', 'physicalMemColumn', 80, !USE_PRIVATE_MEM], 24 ['sharedMemory', 'sharedMemColumn', 80, false], 25 ['privateMemory', 'privateMemColumn', 80, USE_PRIVATE_MEM], 26 ['cpuUsage', 'cpuColumn', 80, true], 27 ['networkUsage', 'netColumn', 85, true], 28 ['processId', 'processIDColumn', 100, false], 29 ['webCoreImageCacheSize', 'webcoreImageCacheColumn', 120, false], 30 ['webCoreScriptsCacheSize', 'webcoreScriptsCacheColumn', 120, false], 31 ['webCoreCSSCacheSize', 'webcoreCSSCacheColumn', 120, false], 32 ['fps', 'fpsColumn', 50, true], 33 ['videoMemory', 'videoMemoryColumn', 80, false], 34 ['sqliteMemoryUsed', 'sqliteMemoryUsedColumn', 80, false], 35 ['goatsTeleported', 'goatsTeleportedColumn', 80, false], 36 ['v8MemoryAllocatedSize', 'javascriptMemoryAllocatedColumn', 120, false], 37 ]; 38 39 /* 40 * Height of each tasks. It is 20px, which is also defined in CSS. 41 * @const 42 */ 43 var HEIGHT_OF_TASK = 20; 44 45 var COMMAND_CONTEXTMENU_COLUMN_PREFIX = 'columnContextMenu'; 46 var COMMAND_CONTEXTMENU_TABLE_PREFIX = 'tableContextMenu'; 47 48 var ENABLED_COLUMNS_KEY = 'enabledColumns'; 49 50 var DEFAULT_SORT_COLUMN = 'cpuUsage'; 51 var DEFAULT_SORT_DIRECTION = 'desc'; 52