SIGPROF

From Wikipedia, the free encyclopedia

SIGPROF
Description: Profiling timer expired
Default action: Abnormal termination of the process
SA_SIGINFO macros
None

On POSIX-compliant platforms, SIGPROF is the signal thrown by computer programs when the profiling timer expires. The symbolic constant for SIGPROF is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms.

[edit] Etymology

SIG is a common prefix for signal names. PROF is an abbreviation for profiler.

[edit] Usage

SIGPROF is sent when a timer expires, like SIGVTALRM and the more popular SIGALRM. The distinction of SIGPROF is that its timer counts time spent executing the process and by the system carrying out tasks on behalf of the process; SIGVTALRM measures only time spent by the process itself, while SIGALRM measures real time. It is suggested that SIGPROF be used with SIGVTALRM to profile the time spent by the process in user and kernel space.


POSIX Signals
SIGABRT | SIGALRM | SIGFPE | SIGHUP | SIGILL | SIGINT | SIGKILL | SIGPIPE | SIGQUIT | SIGSEGV | SIGTERM | SIGUSR1 | SIGUSR2 | SIGCHLD | SIGCONT | SIGSTOP | SIGTSTP | SIGTTIN | SIGTTOU | SIGBUS | SIGPOLL | SIGPROF | SIGSYS | SIGTRAP | SIGURG | SIGVTALRM | SIGXCPU | SIGXFSZ | Realtime Signals are user definable—SIGRTMIN+n through SIGRTMAX.
Common non-POSIX signals and synonyms
SIGIOT | SIGEMT | SIGSTKFLT | SIGIO | SIGCLD | SIGINFO | SIGPWR (SIGINFO) | SIGLOST | SIGWINCH | SIGUNUSED
In other languages