Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
confighttp::report_timeline Namespace Reference

Classes

struct  system_t
 The machine around the stream. A value nobody may read here stays negative. More...
struct  sample_t
struct  previous_t

Functions

std::optional< long long > read_number (const fs::path &path)
std::string read_word (const fs::path &path)
std::optional< fs::path > hwmon (std::initializer_list< std::string_view > names, const fs::path &root="/sys/class/hwmon")
double temperature (const fs::path &dir, std::string_view label)
double current_amdgpu_clock (const fs::path &path)
void read_nvidia (const std::string &pci_address, system_t &s)
system_t read_system (bool gpu)
void record ()
std::vector< sample_t > snapshot ()

Variables

struct confighttp::report_timeline::previous_t previous
std::string encode_card
 The encoding GPU's sysfs device directory.
std::mutex mutex
std::deque< sample_t > samples
constexpr std::size_t max_samples = 720

Detailed Description

The stream timeline for diagnostic reports: what the pipeline did every five seconds while streaming, and for a minute after, so a report shows the state before, during and after a problem. An hour of it is kept.

Function Documentation

◆ current_amdgpu_clock()

double confighttp::report_timeline::current_amdgpu_clock ( const fs::path & path)

Definition at line 2523 of file confighttp.cpp.

◆ hwmon()

std::optional< fs::path > confighttp::report_timeline::hwmon ( std::initializer_list< std::string_view > names,
const fs::path & root = "/sys/class/hwmon" )

Definition at line 2485 of file confighttp.cpp.

◆ read_number()

std::optional< long long > confighttp::report_timeline::read_number ( const fs::path & path)

Definition at line 2468 of file confighttp.cpp.

◆ read_nvidia()

void confighttp::report_timeline::read_nvidia ( const std::string & pci_address,
system_t & s )

Definition at line 2535 of file confighttp.cpp.

◆ read_system()

system_t confighttp::report_timeline::read_system ( bool gpu)

Definition at line 2569 of file confighttp.cpp.

◆ read_word()

std::string confighttp::report_timeline::read_word ( const fs::path & path)

Definition at line 2477 of file confighttp.cpp.

◆ record()

void confighttp::report_timeline::record ( )

Definition at line 2731 of file confighttp.cpp.

◆ snapshot()

std::vector< sample_t > confighttp::report_timeline::snapshot ( )

Definition at line 2754 of file confighttp.cpp.

◆ temperature()

double confighttp::report_timeline::temperature ( const fs::path & dir,
std::string_view label )

Definition at line 2497 of file confighttp.cpp.

Variable Documentation

◆ encode_card

std::string confighttp::report_timeline::encode_card

The encoding GPU's sysfs device directory.

Definition at line 2564 of file confighttp.cpp.

◆ max_samples

std::size_t confighttp::report_timeline::max_samples = 720
constexpr

Definition at line 2729 of file confighttp.cpp.

◆ mutex

std::mutex confighttp::report_timeline::mutex

Definition at line 2727 of file confighttp.cpp.

◆ samples

std::deque<sample_t> confighttp::report_timeline::samples

Definition at line 2728 of file confighttp.cpp.