comparison probes.c @ 60:7b799a46cc87

Added compiler switch to turn on and off debug-only probes, deleted time-junk
author Me
date Mon, 08 Nov 2010 03:57:46 -0800
parents 3bac84e4e56e
children a6c442d52590 13b22ffb8a2f
comparison
equal deleted inserted replaced
4:58c4d9b7527f 5:9f65c4b35908
89 printf( "probe: %s\n", probe->nameStr ); 89 printf( "probe: %s\n", probe->nameStr );
90 printFloatHist( probe->hist ); 90 printFloatHist( probe->hist );
91 } 91 }
92 } 92 }
93 #else 93 #else
94 #ifdef STATS__USE_DBL_PROBES
95 94
96 /* 95 /*
97 * In practice, probe operations are called from the app, from inside slaves 96 * In practice, probe operations are called from the app, from inside slaves
98 * -- so have to be sure each probe is single-VP owned, and be sure that 97 * -- so have to be sure each probe is single-VP owned, and be sure that
99 * any place common structures are modified it's done inside the master. 98 * any place common structures are modified it's done inside the master.
351 forAllInDynArrayDo( _VMSMasterEnv->dynIntervalProbesInfo, 350 forAllInDynArrayDo( _VMSMasterEnv->dynIntervalProbesInfo,
352 &generic_print_probe ); 351 &generic_print_probe );
353 fflush( stdout ); 352 fflush( stdout );
354 } 353 }
355 #endif 354 #endif
356 #endif
357
358 /* Junk left over from when trying the different ways to get time stamps..
359 struct timeval tim;
360 gettimeofday(&tim, NULL);
361 double t1=tim.tv_sec+(tim.tv_usec/1000000.0);
362
363 clock_t startClockStamp = clock();
364
365 TSCount startMultStamp = getTSCount();
366 */
367
368 /*
369 TSCount endMultStamp = getTSCount();
370
371 dividerParams->numTSCsToExe = endMultStamp - startMultStamp;
372 printf("\ntime to execute: %d\n", endMultStamp - startMultStamp);
373
374 //==================================================================
375 clock_t endClockStamp = clock();
376 printf("%.4lf seconds of processing\n",
377 (endClockStamp - startClockStamp)/(double)CLOCKS_PER_SEC);
378
379 //==================================================================
380 gettimeofday(&tim, NULL);
381 double t2=tim.tv_sec+(tim.tv_usec/1000000.0);
382 printf("%.6lf seconds elapsed\n", t2-t1);
383 */