Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
A host (CPU time) benchmark based on std::chrono::high_resolution_clock. Timestamps are recorded in milliseconds. More...
#include <foray_hostbenchmark.hpp>
Public Member Functions | |
void | Begin () |
Begins a new benchmark and records the "Begin" timestamp. | |
void | LogTimestamp (const char *id) |
Logs timestamp of id. | |
void | End () |
Records the "End" timestamp and finalizes the benchmark. | |
![]() | |
BenchmarkBase () | |
Additional Inherited Members | |
![]() | |
void | Begin (fp64_t timestamp) |
Begins a new benchmark and records the "Begin" timestamp. | |
void | LogTimestamp (const char *id, fp64_t timestamp) |
Logs timestamp of id. | |
void | End (fp64_t timestamp) |
Records the "End" timestamp and finalizes the benchmark. | |
![]() | |
std::vector< BenchmarkLog > | mLogs |
BenchmarkLog | mCurrentLog |
bool | mRecording = false |
A host (CPU time) benchmark based on std::chrono::high_resolution_clock. Timestamps are recorded in milliseconds.
void foray::bench::HostBenchmark::Begin | ( | ) |
Begins a new benchmark and records the "Begin" timestamp.
void foray::bench::HostBenchmark::End | ( | ) |
Records the "End" timestamp and finalizes the benchmark.
void foray::bench::HostBenchmark::LogTimestamp | ( | const char * | id | ) |
Logs timestamp of id.