Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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
 

Detailed Description

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

Definition in file sys_mon.h.

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 113 of file sys_mon.c.

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

void periodic_report_sysmon ( void  )
void periodic_sysmon ( void  )

Analyse periodic calls Should be run at the highest frequency.

Estimate periodic task cycle time

Definition at line 91 of file sys_mon.c.

References min_time_event, n_event, n_periodic, periodic_cycle, SysMon::periodic_cycle_max, SysMon::periodic_cycle_min, periodic_timer, sum_cycle_periodic, sum_n_event, sum_time_event, sum_time_periodic, sys_mon, SysTimeTimer, and SysTimeTimerStart.

Variable Documentation

struct SysMon sys_mon

Definition at line 33 of file sys_mon.c.

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