Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison MasterLoop.c @ 68:9c3107044f86
Added measurement hists macros
| author | Me |
|---|---|
| date | Sat, 20 Nov 2010 08:19:05 +0100 |
| parents | dd3e60aeae26 |
| children | 11bfe9d136ed |
comparison
equal
deleted
inserted
replaced
| 18:02ee9d62f45e | 20:7ac7b0b9acb9 |
|---|---|
| 106 | 106 |
| 107 masterLoopStartPt: | 107 masterLoopStartPt: |
| 108 //============================= MEASUREMENT STUFF ======================== | 108 //============================= MEASUREMENT STUFF ======================== |
| 109 #ifdef MEAS__TIME_MASTER | 109 #ifdef MEAS__TIME_MASTER |
| 110 //Total Master time includes one coreloop time -- just assume the core | 110 //Total Master time includes one coreloop time -- just assume the core |
| 111 // loop time is same for Master as for AppVPs, even though it will be | 111 // loop time is same for Master as for AppVPs, even though it may be |
| 112 // smaller due to high predictability of the fixed jmp. | 112 // smaller due to higher predictability of the fixed jmp. |
| 113 saveLowTimeStampCountInto( masterPr->startMasterTSCLow ); | 113 saveLowTimeStampCountInto( masterPr->startMasterTSCLow ); |
| 114 #endif | 114 #endif |
| 115 //======================================================================== | 115 //======================================================================== |
| 116 | 116 |
| 117 masterEnv = _VMSMasterEnv; | 117 masterEnv = _VMSMasterEnv; |
| 137 { | 137 { |
| 138 currSlot->workIsDone = FALSE; | 138 currSlot->workIsDone = FALSE; |
| 139 currSlot->needsProcrAssigned = TRUE; | 139 currSlot->needsProcrAssigned = TRUE; |
| 140 | 140 |
| 141 //process requests from slave to master | 141 //process requests from slave to master |
| 142 //====================== MEASUREMENT STUFF =================== | |
| 143 #ifdef MEAS__TIME_PLUGIN | |
| 144 int32 startStamp1, endStamp1; | |
| 145 saveLowTimeStampCountInto( startStamp1 ); | |
| 146 #endif | |
| 147 //============================================================ | |
| 142 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); | 148 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); |
| 149 //====================== MEASUREMENT STUFF =================== | |
| 150 #ifdef MEAS__TIME_PLUGIN | |
| 151 saveLowTimeStampCountInto( endStamp1 ); | |
| 152 addIntervalToHist( startStamp1, endStamp1, | |
| 153 _VMSMasterEnv->reqHdlrLowTimeHist ); | |
| 154 addIntervalToHist( startStamp1, endStamp1, | |
| 155 _VMSMasterEnv->reqHdlrHighTimeHist ); | |
| 156 #endif | |
| 157 //============================================================ | |
| 143 } | 158 } |
| 144 if( currSlot->needsProcrAssigned ) | 159 if( currSlot->needsProcrAssigned ) |
| 145 { //give slot a new virt procr | 160 { //give slot a new virt procr |
| 146 schedVirtPr = | 161 schedVirtPr = |
| 147 (*slaveScheduler)( semanticEnv, thisCoresIdx ); | 162 (*slaveScheduler)( semanticEnv, thisCoresIdx ); |
