summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/task_manager/defines.js
blob: bcffd385c49761ef64ac8398898bac8d666d602c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

/**
 * Whether task manager shows 'Private Memory' instead of 'Phsical Memory'.
 * @const
 */
var USE_PRIVATE_MEM = false;
// <if expr="(is_linux or pp_ifdef('chromeos'))">
// On Linux and ChromeOS, this is true because calculating Phsical Memory is
// slow.
USE_PRIVATE_MEM = true;
// </if>

/*
 * Default columns (column_id, label_id, width, is_default)
 * @const
 */
var DEFAULT_COLUMNS = [
  ['title', 'pageColumn', 300, true],
  ['profileName', 'profileNameColumn', 120, false],
  ['physicalMemory', 'physicalMemColumn', 80, !USE_PRIVATE_MEM],
  ['sharedMemory', 'sharedMemColumn', 80, false],
  ['privateMemory', 'privateMemColumn', 80, USE_PRIVATE_MEM],
  ['cpuUsage', 'cpuColumn', 80, true],
  ['networkUsage', 'netColumn', 85, true],
  ['processId', 'processIDColumn', 100, false],
  ['webCoreImageCacheSize', 'webcoreImageCacheColumn', 120, false],
  ['webCoreScriptsCacheSize', 'webcoreScriptsCacheColumn', 120, false],
  ['webCoreCSSCacheSize', 'webcoreCSSCacheColumn', 120, false],
  ['fps', 'fpsColumn', 50, true],
  ['sqliteMemoryUsed', 'sqliteMemoryUsedColumn', 80, false],
  ['goatsTeleported', 'goatsTeleportedColumn', 80, false],
  ['v8MemoryAllocatedSize', 'javascriptMemoryAllocatedColumn', 120, false],
];

/*
 * Height of each tasks. It is 20px, which is also defined in CSS.
 * @const
 */
var HEIGHT_OF_TASK = 20;

var COMMAND_CONTEXTMENU_COLUMN_PREFIX = 'columnContextMenu';
var COMMAND_CONTEXTMENU_TABLE_PREFIX = 'tableContextMenu';