|
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. | |
Public Member Functions inherited from foray::bench::BenchmarkBase | |
| BenchmarkBase () | |
Additional Inherited Members | |
Protected Member Functions inherited from foray::bench::BenchmarkBase | |
| 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. | |
Protected Attributes inherited from foray::bench::BenchmarkBase | |
| 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.