FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
flush_profilers.h File Reference

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...
 

Detailed Description

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.

Macro Definition Documentation

◆ FLUSH_PROFILING_BUFFERS

#define FLUSH_PROFILING_BUFFERS (   forceExit)    flushProfilingBuffers(forceExit)

Flush profiling buffers.

Function Documentation

◆ flushProfilingBuffers()

void flushProfilingBuffers ( int  forceExit)
inline

Flush profiling buffers - POSIX-specific.

Parameters
forceExitindicates 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