PX4 Firmware
PX4 Autopilot Software http://px4.io
load_mon.cpp File Reference
#include <drivers/drv_hrt.h>
#include <lib/perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
#include <px4_platform_common/module.h>
#include <px4_platform_common/module_params.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <systemlib/cpuload.h>
#include <uORB/Publication.hpp>
#include <uORB/PublicationQueued.hpp>
#include <uORB/topics/cpuload.h>
#include <uORB/topics/task_stack_info.h>
Include dependency graph for load_mon.cpp:

Go to the source code of this file.

Classes

class  load_mon::LoadMon
 

Namespaces

 load_mon
 

Macros

#define STACK_LOW_WARNING_THRESHOLD   300
 if free stack space falls below this, print a warning More...
 
#define FDS_LOW_WARNING_THRESHOLD   3
 if free file descriptors fall below this, print a warning More...
 

Functions

__EXPORT int load_mon::load_mon_main (int argc, char *argv[])
 

Variables

const unsigned load_mon::LOAD_MON_INTERVAL_US = 1000000
 

Detailed Description

Macro Definition Documentation

◆ FDS_LOW_WARNING_THRESHOLD

#define FDS_LOW_WARNING_THRESHOLD   3

if free file descriptors fall below this, print a warning

Definition at line 60 of file load_mon.cpp.

Referenced by load_mon::LoadMon::_ram_used().

◆ STACK_LOW_WARNING_THRESHOLD

#define STACK_LOW_WARNING_THRESHOLD   300

if free stack space falls below this, print a warning

Definition at line 59 of file load_mon.cpp.

Referenced by load_mon::LoadMon::_ram_used().