Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > MeasVMS > VMS__Susp_and_Master__Meas
changeset 3:8640020930d9 tip
Modified where put histograms and how update them -- but about to change again
| author | Me |
|---|---|
| date | Tue, 26 Oct 2010 18:16:55 -0700 |
| parents | 1f58fc0180e4 |
| children | |
| files | src/Application/MeasVMS_MeasureFn/EntryPoint.c src/Application/MeasVMS_MeasureFn/seed_Pr.c |
| diffstat | 2 files changed, 12 insertions(+), 15 deletions(-) [+] |
line diff
1.1 --- a/src/Application/MeasVMS_MeasureFn/EntryPoint.c Sat Sep 11 07:28:15 2010 -0700 1.2 +++ b/src/Application/MeasVMS_MeasureFn/EntryPoint.c Tue Oct 26 18:16:55 2010 -0700 1.3 @@ -11,7 +11,6 @@ 1.4 #include <malloc.h> 1.5 1.6 1.7 - 1.8 /*Every MeasVMS system has an "entry point" function that creates the first 1.9 * processor, which starts the chain of creating more processors.. 1.10 * eventually all of the processors will dissipate themselves, and 1.11 @@ -31,8 +30,7 @@ 1.12 { 1.13 HistCarrier *histCarrier = malloc( sizeof( HistCarrier )); 1.14 1.15 - histCarrier->suspHist = makeHistogram( 25, 110, 160 ); 1.16 - histCarrier->masterHist = makeHistogram( 25, 500, 800 ); 1.17 + histCarrier->suspHist = makeHistogram( 25, 110, 160 ); 1.18 1.19 MeasVMS__create_seed_procr_and_do_work( &measSuspendFn, histCarrier ); 1.20 1.21 @@ -40,5 +38,11 @@ 1.22 printHist( histCarrier->suspHist ); 1.23 1.24 printf( "\n master histogram:\n" ); 1.25 - printHist( histCarrier->masterHist ); 1.26 + printHist( histCarrier->masterTimeHist ); 1.27 + 1.28 + printf( "\n master lock histogram:\n" ); 1.29 + printHist( histCarrier->masterLockHist ); 1.30 + 1.31 + printf( "\n processor creation histogram:\n" ); 1.32 + printHist( histCarrier->createHist ); 1.33 }
2.1 --- a/src/Application/MeasVMS_MeasureFn/seed_Pr.c Sat Sep 11 07:28:15 2010 -0700 2.2 +++ b/src/Application/MeasVMS_MeasureFn/seed_Pr.c Tue Oct 26 18:16:55 2010 -0700 2.3 @@ -40,21 +40,14 @@ 2.4 // resumes immediately after suspend, with no MasterVP between 2.5 VMS__suspend_procr( animatingPr ); 2.6 2.7 - //Take difference between the pre-suspend and post-suspend times 2.8 - // and do sanity check to see if rollover happened between 2.9 - diff = animatingPr->postSuspTSCLow - animatingPr->preSuspTSCLow; 2.10 - if( diff > 1000000 ) diff = 0; 2.11 - addToHist( diff, histCarrier->suspHist ); 2.12 + //add the interval between pre-suspend stamp and post-suspend stamp 2.13 + addIntervalToHist( animatingPr->preSuspTSCLow, 2.14 + animatingPr->postSuspTSCLow, 2.15 + histCarrier->suspHist ); 2.16 2.17 //This suspend just lets request handler put two more into queue 2.18 // Notice, there is no request created, handler knows what to do 2.19 VMS__suspend_procr( animatingPr ); 2.20 - 2.21 - //Master will have run at this point, so save master time into hist 2.22 - diff = _VMSMasterEnv->masterVPs[0]->endMasterTSCLow - 2.23 - _VMSMasterEnv->masterVPs[0]->startMasterTSCLow; 2.24 - if( diff > 1000000 ) diff = 0; 2.25 - addToHist( diff, histCarrier->masterHist ); 2.26 } 2.27 2.28 //return resulting histograms by side-effect
