Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.c @ 78:521c75d64cef
Version before optimization
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 04 Jul 2011 19:45:43 +0200 |
| parents | fe5ec83f1baf |
| children | 97e26095c01f |
comparison
equal
deleted
inserted
replaced
| 41:ca7ff8cf081a | 42:366f96735aa8 |
|---|---|
| 108 _VMSMasterEnv->freeListHead = VMS_ext__create_free_list(); | 108 _VMSMasterEnv->freeListHead = VMS_ext__create_free_list(); |
| 109 | 109 |
| 110 | 110 |
| 111 //============================= MEASUREMENT STUFF ======================== | 111 //============================= MEASUREMENT STUFF ======================== |
| 112 #ifdef MEAS__TIME_MALLOC | 112 #ifdef MEAS__TIME_MALLOC |
| 113 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 50, 0, 100, | 113 _VMSMasterEnv->mallocTimeHist = makeFixedBinHistExt( 100, 0, 100, |
| 114 "malloc time hist"); | 114 "malloc time hist"); |
| 115 _VMSMasterEnv->freeTimeHist = makeFixedBinHistExt( 50, 0, 100, | 115 _VMSMasterEnv->freeTimeHist = makeFixedBinHistExt( 50, 0, 100, |
| 116 "free time hist"); | 116 "free time hist"); |
| 117 #endif | 117 #endif |
| 118 #ifdef MEAS__TIME_PLUGIN | 118 #ifdef MEAS__TIME_PLUGIN |
| 669 /*This is called from the startup & shutdown | 669 /*This is called from the startup & shutdown |
| 670 */ | 670 */ |
| 671 void | 671 void |
| 672 VMS__cleanup_at_end_of_shutdown() | 672 VMS__cleanup_at_end_of_shutdown() |
| 673 { | 673 { |
| 674 VMSQueueStruc **readyToAnimateQs; | 674 //unused |
| 675 int coreIdx; | 675 //VMSQueueStruc **readyToAnimateQs; |
| 676 VirtProcr **masterVPs; | 676 //int coreIdx; |
| 677 SchedSlot ***allSchedSlots; //ptr to array of ptrs | 677 //VirtProcr **masterVPs; |
| 678 //SchedSlot ***allSchedSlots; //ptr to array of ptrs | |
| 678 | 679 |
| 679 //Before getting rid of everything, print out any measurements made | 680 //Before getting rid of everything, print out any measurements made |
| 680 forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&printHist ); | 681 forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&printHist ); |
| 682 forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&saveHistToFile); | |
| 681 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); | 683 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); |
| 682 #ifdef MEAS__TIME_PLUGIN | 684 #ifdef MEAS__TIME_PLUGIN |
| 683 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); | 685 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); |
| 684 printHist( _VMSMasterEnv->reqHdlrHighTimeHist ); | 686 printHist( _VMSMasterEnv->reqHdlrHighTimeHist ); |
| 685 freeHistExt( _VMSMasterEnv->reqHdlrLowTimeHist ); | 687 freeHistExt( _VMSMasterEnv->reqHdlrLowTimeHist ); |
