psTrace.h File Reference


Detailed Description

basic run-time trace facilities

This file will hold the prototypes for defining procedures to insert trace messages into the code.

Author:
Robert Lupton, Princeton University

GLG, MHPCC

Version:
Revision
1.54
Name
Date:
Date
2007/01/31 00:38:46
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psTrace.h.

#include <stdarg.h>
#include "psMetadata.h"

Include dependency graph for psTrace.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  p_psComponent
 Basic structure for the component tree. More...

Defines

#define PS_TRACE_H   1
#define PS_UNKNOWN_TRACE_LEVEL   -9999
#define PS_DEFAULT_TRACE_LEVEL   -1
#define PS_THE_OTHER_DEFAULT_TRACE_LEVEL   0
#define PS_TRACE_ON   1
 Functions.

Enumerations

enum  { PS_TRACE_TO_NONE = 0, PS_TRACE_TO_STDOUT = 1, PS_TRACE_TO_STDERR = 2 }

Functions

bool psTraceSetFormat (const char *format)
 This procedure sets the trace format for future trace messages.
void psTrace (const char *facil, int level, const char *format,...)
 Sends a trace message.
int psTraceGetLevel (const char *facil)
 Get the trace level.
int psTraceSetLevel (const char *facil, int level)
 Set trace level.
void psTraceReset (void)
 Set all trace levels to zero (do not free nodes in the facility tree).
void psTracePrintLevels (void)
 print trace levels
bool psTraceSetDestination (int fd)
 Set the destination of future trace messages.
int psTraceGetDestination (void)
 Get the current destination for trace messages.
psMetadatapsTraceLevels (void)
 Return a psMetadata summarising the trace levels.


Define Documentation

#define PS_TRACE_H   1

Definition at line 18 of file psTrace.h.


Generated on Fri Feb 2 22:25:43 2007 for pslib by  doxygen 1.5.1