chrome-NewWindowWithTabsToRight icon indicating copy to clipboard operation
chrome-NewWindowWithTabsToRight copied to clipboard

Support for Chrome's Processes API (aka Task Manager: CPU usage, memory usage, etc)

Open 0xdevalias opened this issue 4 years ago • 0 comments

APIs

Dev APIs

These APIs are only available in the Chrome Dev channel

  • https://developer.chrome.com/docs/extensions/reference/processes/
    • Use the chrome.processes API to interact with the browser's processes.

    • https://developer.chrome.com/docs/extensions/reference/processes/#method-getProcessIdForTab
      • Returns the ID of the renderer process for the specified tab.

    • https://developer.chrome.com/docs/extensions/reference/processes/#method-getProcessInfo
      • Retrieves the process information for each process ID specified.

    • https://developer.chrome.com/docs/extensions/reference/processes/#method-terminate
      • Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.

    • https://developer.chrome.com/docs/extensions/reference/processes/#event-onCreated
      • Fired each time a process is created, providing the corresponding Process object.

    • https://developer.chrome.com/docs/extensions/reference/processes/#event-onExited
      • Fired each time a process is terminated, providing the type of exit.

    • https://developer.chrome.com/docs/extensions/reference/processes/#event-onUnresponsive
      • Fired each time a process becomes unresponsive, providing the corresponding Process object.

    • https://developer.chrome.com/docs/extensions/reference/processes/#event-onUpdated
      • Fired each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID.

    • https://developer.chrome.com/docs/extensions/reference/processes/#event-onUpdatedWithMemory
      • Fired each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID. Identical to onUpdate, with the addition of memory usage details included in each Process object. Note, collecting memory usage information incurs extra CPU usage and should only be listened for when needed.

  • https://developer.chrome.com/docs/extensions/reference/api/permissions
    • chrome.permissions

0xdevalias avatar Jan 23 '21 23:01 0xdevalias