Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_mon.h File Reference

System monitoring return cpu load, average exec time, ... More...

#include "std.h"
+ Include dependency graph for sys_mon.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SysMon
 

Functions

void init_sysmon (void)
 Init system monitoring. More...
 
void periodic_report_sysmon (void)
 Report system status. More...
 
void periodic_sysmon (void)
 Analyse periodic calls Should be run at the highest frequency. More...
 
void event_sysmon (void)
 Analyse event calls. More...
 

Variables

struct SysMon sys_mon
 Global system monitor data (averaged over 1 sec) More...
 

Detailed Description

System monitoring return cpu load, average exec time, ...

Definition in file sys_mon.h.


Data Structure Documentation

struct SysMon

Definition at line 34 of file sys_mon.h.

Data Fields
uint8_t cpu_load
uint16_t event_number
uint16_t periodic_cycle in usec
uint16_t periodic_cycle_max in usec
uint16_t periodic_cycle_min in usec
uint16_t periodic_time in usec
uint16_t periodic_time_max in usec
uint16_t periodic_time_min in usec

Function Documentation

void event_sysmon ( void  )

Analyse event calls.

Store event calls total time and number of calls between two periodic calls

Definition at line 125 of file sys_mon.c.

References event_timer, min_time_event, n_event, sum_time_event, SysTimeTimer, and SysTimeTimerStart.

void periodic_sysmon ( void  )

Variable Documentation

struct SysMon sys_mon

Global system monitor data (averaged over 1 sec)

Definition at line 27 of file sys_mon.c.

Referenced by init_sysmon(), periodic_report_sysmon(), and periodic_sysmon().