|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Abstract interface for frame metrics sources. More...
#include <frame_metrics.h>
Public Member Functions | |
| virtual | ~IFrameMetricsReader ()=default |
| virtual FrameMetrics | getMetrics () const =0 |
| Get the latest metrics. | |
| virtual std::string | getSourceName () const =0 |
| Get the source name for this reader. | |
| virtual bool | isActive () const =0 |
| Check if reader is actively collecting. | |
| virtual bool | isAvailable () const =0 |
| Check if this reader is available on the system. | |
| virtual bool | start (int pid)=0 |
| Start collecting metrics for a process. | |
| virtual void | stop ()=0 |
| Stop collecting metrics. | |
Abstract interface for frame metrics sources.
Implementations read frame data from different sources:
Definition at line 198 of file frame_metrics.h.
|
virtualdefault |
|
pure virtual |
Get the latest metrics.
Implemented in MangoHudLogReader.
|
pure virtual |
Get the source name for this reader.
Implemented in MangoHudLogReader.
|
pure virtual |
Check if reader is actively collecting.
Implemented in MangoHudLogReader.
|
pure virtual |
Check if this reader is available on the system.
Implemented in MangoHudLogReader.
|
pure virtual |
Start collecting metrics for a process.
| pid | Process ID of the game |
Implemented in MangoHudLogReader.
|
pure virtual |
Stop collecting metrics.
Implemented in MangoHudLogReader.