#include <oskit/c/sys/gmon.h>#include <oskit/c/sys/profile.h>
void monstartup(unsigned long *lowpc, unsigned long *highpc);
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.
- 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.