Fixposition SDK 0.0.0-heads/main-0-g155c724
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
fpsdk::common::app::PerfStats Struct Reference

App performance stats. More...

#include <app.hpp>

Collaboration diagram for fpsdk::common::app::PerfStats:
[legend]

Public Member Functions

 PerfStats ()
 Constructor.
void Reset ()
 Reset stats.
void Update ()
 Update stats.

Public Attributes

double mem_curr_ = 0.0
 Current memory usage [MiB].
double mem_peak_ = 0.0
 Peak memory usage [MiB].
double cpu_curr_ = 0.0
 Current (= average since last call to Update()) CPU usage [%].
double cpu_avg_ = 0.0
 Average (since start) CPU usage [%].
double cpu_peak_ = 0.0
 Peak CPU usage [%].
time::Duration uptime_
 Time since start.
uint64_t pid_ = 0
 Process ID.

Detailed Description

App performance stats.

Definition at line 282 of file app.hpp.

Member Data Documentation

◆ mem_curr_

double fpsdk::common::app::PerfStats::mem_curr_ = 0.0

Current memory usage [MiB].

Definition at line 289 of file app.hpp.

◆ mem_peak_

double fpsdk::common::app::PerfStats::mem_peak_ = 0.0

Peak memory usage [MiB].

Definition at line 290 of file app.hpp.

◆ cpu_curr_

double fpsdk::common::app::PerfStats::cpu_curr_ = 0.0

Current (= average since last call to Update()) CPU usage [%].

Definition at line 291 of file app.hpp.

◆ cpu_avg_

double fpsdk::common::app::PerfStats::cpu_avg_ = 0.0

Average (since start) CPU usage [%].

Definition at line 292 of file app.hpp.

◆ cpu_peak_

double fpsdk::common::app::PerfStats::cpu_peak_ = 0.0

Peak CPU usage [%].

Definition at line 293 of file app.hpp.

◆ uptime_

time::Duration fpsdk::common::app::PerfStats::uptime_

Time since start.

Definition at line 294 of file app.hpp.

◆ pid_

uint64_t fpsdk::common::app::PerfStats::pid_ = 0

Process ID.

Definition at line 295 of file app.hpp.


The documentation for this struct was generated from the following file:
  • fpsdk_common/include/fpsdk_common/app.hpp