Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.c @ 129:ce02441b77cf
dependency tracking
| author | Nina Engelhardt |
|---|---|
| date | Mon, 29 Aug 2011 19:12:06 +0200 |
| parents | 73fc5aafbe45 |
| children | 5475f90c248a |
comparison
equal
deleted
inserted
replaced
| 53:0ca406c0bc21 | 55:c4ed4021caab |
|---|---|
| 183 _VMSMasterEnv->masterLockHighTimeHist = makeFixedBinHist( 50, 0, 100, | 183 _VMSMasterEnv->masterLockHighTimeHist = makeFixedBinHist( 50, 0, 100, |
| 184 "master lock high time hist"); | 184 "master lock high time hist"); |
| 185 #endif | 185 #endif |
| 186 | 186 |
| 187 MakeTheMeasHists(); | 187 MakeTheMeasHists(); |
| 188 | |
| 189 #ifdef DETECT_DEPENDENCIES | |
| 190 _VMSMasterEnv->dependencies = VMS__malloc(10*sizeof(void*)); | |
| 191 _VMSMasterEnv->dependenciesInfo = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->dependencies),10); | |
| 192 #endif | |
| 188 | 193 |
| 189 #ifdef MEAS__PERF_COUNTERS | 194 #ifdef MEAS__PERF_COUNTERS |
| 190 //printf("Creating HW counters..."); | 195 //printf("Creating HW counters..."); |
| 191 FILE* output; | 196 FILE* output; |
| 192 int n; | 197 int n; |
| 769 | 774 |
| 770 //Before getting rid of everything, print out any measurements made | 775 //Before getting rid of everything, print out any measurements made |
| 771 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&printHist ); | 776 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&printHist ); |
| 772 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&saveHistToFile); | 777 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&saveHistToFile); |
| 773 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); | 778 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); |
| 779 #ifdef DETECT_DEPENDENCIES | |
| 780 FILE* output; | |
| 781 int n; | |
| 782 char filename[255]; | |
| 783 for(n=0;n<255;n++) | |
| 784 { | |
| 785 sprintf(filename, "./counters/Dependencies.%d.csv",n); | |
| 786 output = fopen(filename,"r"); | |
| 787 if(output) | |
| 788 { | |
| 789 fclose(output); | |
| 790 }else{ | |
| 791 break; | |
| 792 } | |
| 793 } | |
| 794 printf("Saving Dependencies to File: %s ...\n", filename); | |
| 795 output = fopen(filename,"w+"); | |
| 796 set_dependency_file(output); | |
| 797 fprintf(output,"digraph Dependencies {\n"); | |
| 798 | |
| 799 forAllInDynArrayDo( _VMSMasterEnv->dependenciesInfo, &print_dependency_to_file ); | |
| 800 fprintf(output,"}\n"); | |
| 801 #endif | |
| 774 #ifdef MEAS__TIME_PLUGIN | 802 #ifdef MEAS__TIME_PLUGIN |
| 775 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); | 803 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); |
| 776 saveHistToFile( _VMSMasterEnv->reqHdlrLowTimeHist ); | 804 saveHistToFile( _VMSMasterEnv->reqHdlrLowTimeHist ); |
| 777 printHist( _VMSMasterEnv->reqHdlrHighTimeHist ); | 805 printHist( _VMSMasterEnv->reqHdlrHighTimeHist ); |
| 778 saveHistToFile( _VMSMasterEnv->reqHdlrHighTimeHist ); | 806 saveHistToFile( _VMSMasterEnv->reqHdlrHighTimeHist ); |
