class Worker
Defined at line 33 of file ../../src/testing/loadbench/worker.h
Forward declaration.
Public Methods
void Worker (Worker && )
Defined at line 35 of file ../../src/testing/loadbench/worker.h
Worker & operator= (Worker && )
Defined at line 36 of file ../../src/testing/loadbench/worker.h
void Worker (const Worker & )
Defined at line 37 of file ../../src/testing/loadbench/worker.h
Worker & operator= (const Worker & )
Defined at line 38 of file ../../src/testing/loadbench/worker.h
std::pair<std::thread, std::unique_ptr<Worker>> Create (WorkerConfig config)
Defined at line 40 of file ../../src/testing/loadbench/worker.h
void Sleep (std::chrono::nanoseconds duration_ns)
Sleeps the worker for the given duration. Returns early if the termination
flag is set.
Defined at line 48 of file ../../src/testing/loadbench/worker.h
void Spin (std::chrono::nanoseconds duration_ns)
Spins the worker for the given duration. Returns early if the termination
flag is set.
Defined at line 54 of file ../../src/testing/loadbench/worker.h
void Yield ()
Yields the worker.
Defined at line 62 of file ../../src/testing/loadbench/worker.h
void SetProfile (const zx::unowned_profile & profile)
Defined at line 64 of file ../../src/testing/loadbench/worker.h
void Exit ()
Defined at line 69 of file ../../src/testing/loadbench/worker.h
void Dump ()
Defined at line 71 of file ../../src/testing/loadbench/worker.h
void WaitForAllReady (size_t count)
Defined at line 80 of file ../../src/testing/loadbench/worker.h
void StartAll ()
Defined at line 89 of file ../../src/testing/loadbench/worker.h
void TerminateAll ()
Defined at line 91 of file ../../src/testing/loadbench/worker.h
std::chrono::nanoseconds total_runtime ()
Defined at line 99 of file ../../src/testing/loadbench/worker.h
uint64_t spin_iterations ()
Defined at line 102 of file ../../src/testing/loadbench/worker.h
const std::string & name ()
Defined at line 104 of file ../../src/testing/loadbench/worker.h
const std::string & group ()
Defined at line 105 of file ../../src/testing/loadbench/worker.h