|
group2 0.1.0
CSE 125 Group 2
|
Session recorder enabled by GROUP2_CLIENT_PERF=1. More...
#include <ClientPerfRecorder.hpp>
Public Member Functions | |
| void | configureFromEnv (const char *basePath) |
| void | start () |
| void | stop () |
| void | record (const ClientPerfFrame &frame) |
| bool | isEnabled () const noexcept |
| bool | isRecording () const noexcept |
| const std::string & | sessionDir () const noexcept |
Private Member Functions | |
| void | writeFramesCsv () const |
| void | writeSummary () const |
Private Attributes | |
| bool | enabled_ = false |
| bool | recording_ = false |
| std::size_t | reserveFrames_ = 240000 |
| std::uint64_t | framesBeyondInitialReserve_ = 0 |
| std::string | baseDir_ |
| std::string | sessionDir_ |
| std::vector< ClientPerfFrame > | frames_ |
Session recorder enabled by GROUP2_CLIENT_PERF=1.
The recorder does not write from the frame loop. Frames are appended to a pre-reserved vector and flushed to disk on quit, keeping the measured stutter profile free from profiler file I/O.
| void ClientPerfRecorder::configureFromEnv | ( | const char * | basePath | ) |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
| void ClientPerfRecorder::record | ( | const ClientPerfFrame & | frame | ) |
|
inlinenodiscardnoexcept |
| void ClientPerfRecorder::start | ( | ) |
| void ClientPerfRecorder::stop | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |