comparison probes.h @ 52:f59cfa31a579

fixed up probes just a bit
author Me
date Sat, 30 Oct 2010 21:53:55 -0700
parents 8f7141a9272e
children 42dd44df1bb0
comparison
equal deleted inserted replaced
0:a375da5a9992 1:fdc66d569a7b
12 12
13 #include "VMS_primitive_data_types.h" 13 #include "VMS_primitive_data_types.h"
14 14
15 #include <sys/time.h> 15 #include <sys/time.h>
16 16
17 //turns on the probe-instrumentation in the application -- when not
18 // defined, the calls to the probe functions turn into comments
19 //#define STATS__ENABLE_PROBES
20 17
21 //when STATS__TURN_ON_PROBES is defined allows using probes to measure 18 //when STATS__TURN_ON_PROBES is defined allows using probes to measure
22 // time intervals. The probes are macros that only compile to something 19 // time intervals. The probes are macros that only compile to something
23 // when STATS__TURN_ON_PROBES is defined. The probes are saved in the 20 // when STATS__TURN_ON_PROBES is defined. The probes are saved in the
24 // master env -- but only when this is defined. 21 // master env -- but only when this is defined.
70 VMS_impl__record_time_point_into_new_probe( char *nameStr,VirtProcr *animPr); 67 VMS_impl__record_time_point_into_new_probe( char *nameStr,VirtProcr *animPr);
71 #define VMS__record_time_point_into_new_probe( nameStr, animPr ) \ 68 #define VMS__record_time_point_into_new_probe( nameStr, animPr ) \
72 VMS_impl__record_time_point_in_new_probe( nameStr, animPr ) 69 VMS_impl__record_time_point_in_new_probe( nameStr, animPr )
73 70
74 int32 71 int32
75 VMS_ext_impl__record_time_point_into_new_probe( char *nameStr, VirtProcr *animPr); 72 VMS_ext_impl__record_time_point_into_new_probe( char *nameStr );
76 #define VMS_ext__record_time_point_into_new_probe( nameStr ) \ 73 #define VMS_ext__record_time_point_into_new_probe( nameStr ) \
77 VMS_ext_impl__record_time_point_into_new_probe_impl( nameStr ) 74 VMS_ext_impl__record_time_point_into_new_probe( nameStr )
78 75
79 76
80 int32 77 int32
81 VMS_impl__create_single_interval_probe( char *nameStr, VirtProcr *animPr ); 78 VMS_impl__create_single_interval_probe( char *nameStr, VirtProcr *animPr );
82 #define VMS__create_single_interval_probe( nameStr, animPr ) \ 79 #define VMS__create_single_interval_probe( nameStr, animPr ) \