next up previous contents index
Next: 20.4 Using gprof Up: 20.3 API reference Previous: 20.3.2 moncontrol: enable or

20.3.3 monstartup: Start profiling for the first time

 

SYNOPSIS

#include <oskit/c/sys/gmon.h>

#include <oskit/c/sys/profile.h>

void monstartup(unsigned long *lowpc, unsigned long *highpc);

DESCRIPTION

monstartup initiates profiling of the kernel; it should only be called once. Note that by default, monstartup is called by base_multiboot_main when profiling is enabled with configure. If you wish to delay profiling until a later time, disable the monstartup call in base_multiboot_main, and place your own call to monstartup later in your code.

PARAMETERS

lowpc
The lowest address for which statistics should be collected. Usually the location of the _start symbol.
highpc
The highest address for which statistics should be collected. Usually the location of the etext (end of text segment) symbol.



University of Utah Flux Research Group