Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff MasterLoop.c @ 68:9c3107044f86
Added measurement hists macros
| author | Me |
|---|---|
| date | Sat, 20 Nov 2010 08:19:05 +0100 |
| parents | dd3e60aeae26 |
| children | 11bfe9d136ed |
line diff
1.1 --- a/MasterLoop.c Tue Nov 16 16:00:32 2010 +0100 1.2 +++ b/MasterLoop.c Sat Nov 20 08:19:05 2010 +0100 1.3 @@ -108,8 +108,8 @@ 1.4 //============================= MEASUREMENT STUFF ======================== 1.5 #ifdef MEAS__TIME_MASTER 1.6 //Total Master time includes one coreloop time -- just assume the core 1.7 - // loop time is same for Master as for AppVPs, even though it will be 1.8 - // smaller due to high predictability of the fixed jmp. 1.9 + // loop time is same for Master as for AppVPs, even though it may be 1.10 + // smaller due to higher predictability of the fixed jmp. 1.11 saveLowTimeStampCountInto( masterPr->startMasterTSCLow ); 1.12 #endif 1.13 //======================================================================== 1.14 @@ -139,7 +139,22 @@ 1.15 currSlot->needsProcrAssigned = TRUE; 1.16 1.17 //process requests from slave to master 1.18 + //====================== MEASUREMENT STUFF =================== 1.19 + #ifdef MEAS__TIME_PLUGIN 1.20 + int32 startStamp1, endStamp1; 1.21 + saveLowTimeStampCountInto( startStamp1 ); 1.22 + #endif 1.23 + //============================================================ 1.24 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); 1.25 + //====================== MEASUREMENT STUFF =================== 1.26 + #ifdef MEAS__TIME_PLUGIN 1.27 + saveLowTimeStampCountInto( endStamp1 ); 1.28 + addIntervalToHist( startStamp1, endStamp1, 1.29 + _VMSMasterEnv->reqHdlrLowTimeHist ); 1.30 + addIntervalToHist( startStamp1, endStamp1, 1.31 + _VMSMasterEnv->reqHdlrHighTimeHist ); 1.32 + #endif 1.33 + //============================================================ 1.34 } 1.35 if( currSlot->needsProcrAssigned ) 1.36 { //give slot a new virt procr
