Enumerations

enum TaskType
Name Value
Job 0
Process 1
Thread 2

Defined at line 15 of file ../../src/developer/process_explorer/task_hierarchy_data.h

Records

Functions

  • std::string WriteTaskHierarchyDataAsJson (std::vector<Task> tasks_data)

    Returns the task information vector as a JSON string. In this format:

    {

    "Tasks":[

    {

    "depth":2,

    "koid":1097,

    "parent_koid":781,

    "type":"process",

    "name":"bin/component_manager"

    },

    ...

    ]

    }

    Defined at line 16 of file ../../src/developer/process_explorer/task_hierarchy_data.cc

  • std::string WriteProcessesDataAsJson (std::vector<Process> processes_data)

    Returns the process information vector as a JSON string. In this format:

    {

    "Processes":[

    {

    "koid":1097,

    "name":"bin/component_manager",

    "objects":[

    {

    "type":17,

    "koid":41903,

    "related_koid":1033,

    "peer_owner_koid":0

    },

    ...

    ]

    },

    ...

    ]

    }

    Defined at line 16 of file ../../src/developer/process_explorer/process_data.cc

  • zx_status_t GetHandles (zx::unowned_process process, std::vector<zx_info_handle_extended_t> * out)

    Returns an array of zx_info_handle_extended_t one for each handle in the Process at the moment of

    the call.

    Defined at line 58 of file ../../src/developer/process_explorer/process_data.cc

  • void FillPeerOwnerKoid (std::vector<Process> & processes_data)

    Finds the peer_owner_koid field for objects that have two ends (such as channels or sockets).

    The function is only able to find the peer_owner_koid when each end of the object is

    owned by a process at the time the processes are walked and their objects are retrieved.

    Defined at line 78 of file ../../src/developer/process_explorer/process_data.cc