class ProcessWatcher

Defined at line 22 of file ../../src/performance/experimental/profiler/process_watcher.h

A class which monitors a process using task_create_exception_channel to listen for new threads

created by the process.

Public Methods

zx::result<> Watch (async_dispatcher_t * dispatcher)

Begin monitoring the watched process for new threads. Each new thread will be paused until the

handler has been invoked and completed.

Defined at line 21 of file ../../src/performance/experimental/profiler/process_watcher.cc

void ProcessWatcher (zx::unowned_process process, fit::function<void (zx_koid_t, zx_koid_t, zx::thread)> start_handler, fit::function<void (zx_koid_t, zx_koid_t)> exit_handler)

Defined at line 24 of file ../../src/performance/experimental/profiler/process_watcher.h