class BacktraceWatchdog

Defined at line 17 of file ../../src/virtualization/tests/lib/backtrace_watchdog.h

BacktraceWatchdog is a one-shot watchdog that backtraces all the threads in a job if the timeout

is reached prior to the watchdog being stopped. The watchdog spawns its own thread and does not

rely on a thread being available on any dispatcher to trigger the timeout.

Public Methods

void BacktraceWatchdog ()

Defined at line 19 of file ../../src/virtualization/tests/lib/backtrace_watchdog.h

void ~BacktraceWatchdog ()

Defined at line 49 of file ../../src/virtualization/tests/lib/backtrace_watchdog.cc

zx_status_t Start (zx::job job, zx::duration wait_time)

Start the watchdog with the given job and timeout.

Defined at line 31 of file ../../src/virtualization/tests/lib/backtrace_watchdog.cc

void Stop ()

Stop the watchdog early. This happens implicitly on destruction.

Defined at line 51 of file ../../src/virtualization/tests/lib/backtrace_watchdog.cc