Index: chrome/common/extensions/api/extension_api.json |
=================================================================== |
--- chrome/common/extensions/api/extension_api.json (revision 62984) |
+++ chrome/common/extensions/api/extension_api.json (working copy) |
@@ -2590,16 +2590,37 @@ |
"properties": { |
"id": { |
"type": "integer", |
- "description": "The internal ID of the process." |
+ "description": "The ID of the process, as provided by the OS." |
+ }, |
+ "type": { |
+ "type": "string", |
+ "enum": ["browser", "renderer", "extension", "notification", "plugin", "worker", "nacl", "utility", "gpu", "other"], |
+ "description": "The type of process." |
+ }, |
+ "cpu": { |
+ "type": "number", |
+ "description": "The most recent measurement of the process's CPU usage, between 0 and 100%." |
+ }, |
+ "network": { |
+ "type": "number", |
+ "description": "The most recent measurement of the process's network usage, in bytes per second." |
+ }, |
+ "privateMemory": { |
+ "type": "number", |
+ "description": "The most recent measurement of the process's private memory usage, in bytes." |
+ }, |
+ "sharedMemory": { |
+ "type": "number", |
+ "description": "The most recent measurement of the process's shared memory usage, in bytes." |
} |
} |
} |
], |
"functions": [ |
{ |
- "name": "getProcessForTab", |
+ "name": "getProcessIdForTab", |
"type": "function", |
- "description": "Returns details about the current renderer process of the specified tab.", |
+ "description": "Returns the ID of the renderer process for the specified tab.", |
"parameters": [ |
{ |
"name": "tabId", |
@@ -2611,16 +2632,30 @@ |
"name": "callback", |
"parameters": [ |
{ |
- "name": "process", |
- "$ref": "Process", |
- "description": "Details about the tab's process." |
+ "name": "processId", |
+ "type": "integer", |
+ "description": "Process ID of the tab's renderer process." |
} |
] |
} |
] |
} |
], |
- "events": [] |
+ "events": [ |
+ { |
+ "name": "onUpdated", |
+ "type": "function", |
+ "description": "Fires each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID.", |
+ "parameters": [ |
+ { |
+ "name": "processes", |
+ "type": "object", |
+ "properties": {}, |
+ "additionalProperties": { "$ref": "Process" } |
+ } |
+ ] |
+ } |
+ ] |
}, |
{ |
"namespace": "contextMenus", |