NAME
|
prof – accumulate histogram of process execution |
SYNOPSIS
|
#include <u.h> #include <libc.h> void prof(void (*fn)(void*), void *arg, int entries, int what); |
DESCRIPTION
|
Prof arranges to accumulate entries of what data into a histogram
by kernel sampling from clock interrupts and recording PCs, calls
fn(arg), and finally dumps the accumulated profile. Possible values
of what are: Profoff No profiling. Profuser Measure user time only. Profkernel Measure user + kernel time. Proftime Measure total time. Profsample Use clock interrupt to sample. |
FILES
|
prof.out histogram prof.pid histogram for pid. |
SOURCE
|
/sys/src/libc/port/profile.c |
SEE ALSO
|
prof(1), exec(2) |