# HG changeset patch # User Me # Date 1288142215 25200 # Node ID 8640020930d9d24491a9752102c81d8348e84d9a # Parent 1f58fc0180e482b5673b170d62e6a6839fda9d7e Modified where put histograms and how update them -- but about to change again diff -r 1f58fc0180e4 -r 8640020930d9 src/Application/MeasVMS_MeasureFn/EntryPoint.c --- a/src/Application/MeasVMS_MeasureFn/EntryPoint.c Sat Sep 11 07:28:15 2010 -0700 +++ b/src/Application/MeasVMS_MeasureFn/EntryPoint.c Tue Oct 26 18:16:55 2010 -0700 @@ -11,7 +11,6 @@ #include - /*Every MeasVMS system has an "entry point" function that creates the first * processor, which starts the chain of creating more processors.. * eventually all of the processors will dissipate themselves, and @@ -31,8 +30,7 @@ { HistCarrier *histCarrier = malloc( sizeof( HistCarrier )); - histCarrier->suspHist = makeHistogram( 25, 110, 160 ); - histCarrier->masterHist = makeHistogram( 25, 500, 800 ); + histCarrier->suspHist = makeHistogram( 25, 110, 160 ); MeasVMS__create_seed_procr_and_do_work( &measSuspendFn, histCarrier ); @@ -40,5 +38,11 @@ printHist( histCarrier->suspHist ); printf( "\n master histogram:\n" ); - printHist( histCarrier->masterHist ); + printHist( histCarrier->masterTimeHist ); + + printf( "\n master lock histogram:\n" ); + printHist( histCarrier->masterLockHist ); + + printf( "\n processor creation histogram:\n" ); + printHist( histCarrier->createHist ); } diff -r 1f58fc0180e4 -r 8640020930d9 src/Application/MeasVMS_MeasureFn/seed_Pr.c --- a/src/Application/MeasVMS_MeasureFn/seed_Pr.c Sat Sep 11 07:28:15 2010 -0700 +++ b/src/Application/MeasVMS_MeasureFn/seed_Pr.c Tue Oct 26 18:16:55 2010 -0700 @@ -40,21 +40,14 @@ // resumes immediately after suspend, with no MasterVP between VMS__suspend_procr( animatingPr ); - //Take difference between the pre-suspend and post-suspend times - // and do sanity check to see if rollover happened between - diff = animatingPr->postSuspTSCLow - animatingPr->preSuspTSCLow; - if( diff > 1000000 ) diff = 0; - addToHist( diff, histCarrier->suspHist ); + //add the interval between pre-suspend stamp and post-suspend stamp + addIntervalToHist( animatingPr->preSuspTSCLow, + animatingPr->postSuspTSCLow, + histCarrier->suspHist ); //This suspend just lets request handler put two more into queue // Notice, there is no request created, handler knows what to do VMS__suspend_procr( animatingPr ); - - //Master will have run at this point, so save master time into hist - diff = _VMSMasterEnv->masterVPs[0]->endMasterTSCLow - - _VMSMasterEnv->masterVPs[0]->startMasterTSCLow; - if( diff > 1000000 ) diff = 0; - addToHist( diff, histCarrier->masterHist ); } //return resulting histograms by side-effect