FARGOS/VISTA Object Management Environment Core
..
|
Interfaces to flush profiling buffers. More...
#include <stdio.h>
#include <unistd.h>
#include <dlfcn.h>
Go to the source code of this file.
Macros | |
#define | FLUSH_PROFILING_BUFFERS(forceExit) flushProfilingBuffers(forceExit) |
Flush profiling buffers. More... | |
Functions | |
void | flushProfilingBuffers (int forceExit) |
Flush profiling buffers - POSIX-specific. More... | |
Interfaces to flush profiling buffers.
It is sometimes impossible to run a program to error-free completion in order to record the contents of the profiling buffers. This could be due to bugs that cause the program to crash or simply because it normally runs forever.
The special interfaces defined here allow the profiling data to be saved to disk without requiring a successful run to completion.
#define FLUSH_PROFILING_BUFFERS | ( | forceExit | ) | flushProfilingBuffers(forceExit) |
Flush profiling buffers.
|
inline |
Flush profiling buffers - POSIX-specific.
forceExit | indicates if the process should be terminated. A value of 1 indicates _exit() should be called; a value of 2 indicates exit() should be called, which invokes the atexit() handlers and gracefully tears down objects created before main() was invoked. |
References stderr.
![]() | Generated: Fri Jul 31 2020 18:19:15
Support Information |