Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison probes.c @ 54:f8508572f3de
Added boolean guarded debug messages and VMS__throw_exception
| author | Me |
|---|---|
| date | Tue, 02 Nov 2010 16:43:01 -0700 |
| parents | 42dd44df1bb0 |
| children | 3bac84e4e56e |
comparison
equal
deleted
inserted
replaced
| 2:9c74727f79a0 | 3:12d06630fa92 |
|---|---|
| 251 */ | 251 */ |
| 252 void | 252 void |
| 253 VMS_impl__record_interval_start_in_probe( int32 probeID ) | 253 VMS_impl__record_interval_start_in_probe( int32 probeID ) |
| 254 { IntervalProbe *probe; | 254 { IntervalProbe *probe; |
| 255 | 255 |
| 256 DEBUG_MSG( dbgProbes, "record start of interval\n" ) | |
| 256 probe = _VMSMasterEnv->intervalProbes[ probeID ]; | 257 probe = _VMSMasterEnv->intervalProbes[ probeID ]; |
| 257 gettimeofday( &(probe->startStamp), NULL ); | 258 gettimeofday( &(probe->startStamp), NULL ); |
| 258 } | 259 } |
| 259 | 260 |
| 260 | 261 |
| 263 */ | 264 */ |
| 264 void | 265 void |
| 265 VMS_impl__record_interval_end_in_probe( int32 probeID ) | 266 VMS_impl__record_interval_end_in_probe( int32 probeID ) |
| 266 { IntervalProbe *probe; | 267 { IntervalProbe *probe; |
| 267 struct timeval *endStamp, *startStamp; | 268 struct timeval *endStamp, *startStamp; |
| 268 double startSecs, endSecs; | 269 float64 startSecs, endSecs; |
| 269 | 270 |
| 271 DEBUG_MSG( dbgProbes, "record end of interval\n" ) | |
| 270 //possible seg-fault if array resized by diff core right after this | 272 //possible seg-fault if array resized by diff core right after this |
| 271 // one gets probe..? Something like that? Might be safe.. don't care | 273 // one gets probe..? Something like that? Might be safe.. don't care |
| 272 probe = _VMSMasterEnv->intervalProbes[ probeID ]; | 274 probe = _VMSMasterEnv->intervalProbes[ probeID ]; |
| 273 gettimeofday( &(probe->endStamp), NULL); | 275 gettimeofday( &(probe->endStamp), NULL); |
| 274 | 276 |
