📄 trace.h
字号:
/* PSPH - Parallel SPH */
/* SCCS_ID = "@(#) /home/bsmith/src/psph/SCCS/s.trace.h 1.3 94/01/06" */
/* routines to implement a picl-style tracing feature
NOT compatible with ParaGraph!
L. Baker
*/
/* boolean: 1: trace enabled, 0: do not trace */
/* not enabled until trace enable called*/
#define TRACE
void traceenable( char *tracefile, int format);
void traceexit(void);
void traceflush(void);
void tracehost(int tracesize, int flush);
void traceinfo(int *remaining, int *event, int *compstats, int *commstats);
void tracelevel(int event, int compstats, int commstats);
void tracemark(int marktype);
void tracemsg(char *message);
void tracenode(int tracesize,int flush, int sync);
void traceon(void);
void traceoff(void);
void traceclose(void);
void sync0(void);
/* event types: */
typedef int Event; /* use int or char? save a byte? */
#define TraceSTART_SEND 1
#define TraceFINISH_SEND 2
#define TraceWAIT_RECV 3
#define TraceFINISH_RECV 4
#define TraceOPEN 5
#define TraceCLOSE 6
#define TraceTRACE_FLUSH 7
#define TraceTRACE_FLUSHD 8
#define TraceTRACE_LEVEL 9
#define TraceTRACE_START 10
#define TraceTRACE_FINISH 11
#define TraceWAIT_BARRIER 12
#define TraceWAIT_OVER 13
#define TraceUSR_MSG 14 /*pack msg in CurDir? */
#define TraceWAIT_START 15 /* for MPI_Wait */
#define TraceWAIT_DONE 16
#define TraceNULLEVENT 15
#define TraceMAXEVENT TraceNULLEVENT
Event traceMaxEvent(void);
/* USER-DEFINED EVENTS (MARKS) IF ANY SHOULD EXCEED MAXEVENT!!!!!!*/
/* Definitions and structures */
#define NAMESIZE 60
#define MaxCurDirS 20
typedef time_t Time; /* UNIX time: good to milliseconds */
typedef int MSGTYPE;
struct traceitem
{
Time when;
Event what;
int who;/*rank*/
char where[MaxCurDirS];
};
#define SAFTEY 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -