Golem  v0.1.1
Generic Operating system Libraries for Embedded Multitasking
 All Data Structures Files Functions Variables Pages
/home/ruud/Engineering/software/projects/golem-project-code/trunk/glm_resmon.h File Reference

Use the resource monitor to collect heap-usage of software components and scheduling of tasks. More...

#include "glm_scheduler.h"
#include "glm_heap.h"

Go to the source code of this file.

Functions

void resmon_task_iter (p_task_iter_func_t a_func)
 Run the fiven function for each task present. More...
 
void resmon_mem_iter (p_mem_iter_func_t a_func)
 Runs the fiven function for heap memory user present. More...
 

Detailed Description

Use the resource monitor to collect heap-usage of software components and scheduling of tasks.

Author
Ruud Beukema

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Todo:

Verify functioning of this component.

Add an example of use to the Doxygen documentation

Definition in file glm_resmon.h.

Function Documentation

void resmon_mem_iter ( p_mem_iter_func_t  a_func)

Runs the fiven function for heap memory user present.

Parameters
a_funcPointer to function that accepts a pointer to a heap_stats_t variable as its argument. Passing NULL results in no action taken.

Definition at line 38 of file glm_resmon.c.

void resmon_task_iter ( p_task_iter_func_t  a_func)

Run the fiven function for each task present.

Parameters
a_funcPointer to function that accepts pointers to a a task_t and task_stats_t variable as arguments respectively. Passing NULL results in no action taken.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Definition at line 18 of file glm_resmon.c.