chrome.processes (original) (raw)

Skip to main content

chrome.processes

Description

Use the chrome.processes API to interact with the browser's processes.

Permissions

processes

Availability

Types

Cache

Properties

Process

Properties

ProcessType

The types of the browser processes.

Enum

"browser"

"renderer"

"extension"

"notification"

"plugin"

"worker"
Obsolete, will never be returned.

"nacl"

"service_worker"
Obsolete, will never be returned.

"utility"

"gpu"

"other"

TaskInfo

Properties

Methods

getProcessIdForTab()

chrome.processes.getProcessIdForTab(
  tabId: number,
): Promise

Returns the ID of the renderer process for the specified tab.

Parameters

Returns

getProcessInfo()

chrome.processes.getProcessInfo(
  processIds: number | number[],
  includeMemory: boolean,
): Promise

Retrieves the process information for each process ID specified.

Parameters

Returns

terminate()

chrome.processes.terminate(
  processId: number,
): Promise

Terminates the specified renderer process. Equivalent to visiting about:crash, but without changing the tab's URL.

Parameters

Returns

Events

onCreated

chrome.processes.onCreated.addListener(
  callback: function,
)

Fired each time a process is created, providing the corrseponding Process object.

Parameters

onExited

chrome.processes.onExited.addListener(
  callback: function,
)

Fired each time a process is terminated, providing the type of exit.

Parameters

onUnresponsive

chrome.processes.onUnresponsive.addListener(
  callback: function,
)

Fired each time a process becomes unresponsive, providing the corrseponding Process object.

Parameters

onUpdated

chrome.processes.onUpdated.addListener(
  callback: function,
)

Fired each time the Task Manager updates its process statistics, providing the dictionary of updated Process objects, indexed by process ID.

Parameters

onUpdatedWithMemory

chrome.processes.onUpdatedWithMemory.addListener(
  callback: function,
)

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.

Parameters

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-11 UTC.