Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff VMS.c @ 177:3bd35fc83c61
move loopgraph recording to plugin (\! changed scheduler fn prototype \!)
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 04 Jan 2012 16:40:10 +0100 |
| parents | 981acd1db6af |
| children | 7523ee70d66c |
line diff
1.1 --- a/VMS.c Mon Dec 05 18:59:48 2011 +0100 1.2 +++ b/VMS.c Wed Jan 04 16:40:10 2012 +0100 1.3 @@ -188,13 +188,7 @@ 1.4 1.5 1.6 #ifdef DETECT_LOOP_GRAPH 1.7 - _VMSMasterEnv->loop_graph = VMS__malloc(10*sizeof(void*)); 1.8 - _VMSMasterEnv->loop_graph_array_info = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->loop_graph),10); 1.9 - int loop_i; 1.10 - for(loop_i=0;loop_i<NUM_CORES;loop_i++){ 1.11 - _VMSMasterEnv->loop_counter[loop_i]=0; 1.12 - } 1.13 - 1.14 + 1.15 #endif 1.16 1.17 #ifdef MEAS__PERF_COUNTERS 1.18 @@ -785,41 +779,7 @@ 1.19 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, (DynArrayFnPtr)&saveHistToFile); 1.20 //forAllInDynArrayDo( _VMSMasterEnv->measHistsInfo, &freeHistExt ); 1.21 1.22 - #ifdef DETECT_LOOP_GRAPH 1.23 - FILE* loop_output; 1.24 - int loop_n; 1.25 - char loop_filename[255]; 1.26 - for(loop_n=0;loop_n<255;loop_n++) 1.27 - { 1.28 - sprintf(loop_filename, "./counters/LoopGraph.%d.dot",loop_n); 1.29 - loop_output = fopen(loop_filename,"r"); 1.30 - if(loop_output) 1.31 - { 1.32 - fclose(loop_output); 1.33 - }else{ 1.34 - break; 1.35 - } 1.36 - } 1.37 - if(loop_n<255){ 1.38 - printf("Saving Loop Graph to File: %s ...\n", loop_filename); 1.39 - loop_output = fopen(loop_filename,"w+"); 1.40 - if(loop_output!=NULL){ 1.41 - set_dependency_file(loop_output); 1.42 - fprintf(loop_output,"digraph Loop {\n"); 1.43 - set_loop_file(loop_output); 1.44 - forAllInDynArrayDo(_VMSMasterEnv->counter_history_array_info, &print_dot_node_info ); 1.45 - forAllInDynArrayDo( _VMSMasterEnv->loop_graph_array_info, &print_per_slot_to_file ); 1.46 - //int coreIdx; 1.47 - //for(coreIdx=0;coreIdx<NUM_CORES;coreIdx++){ 1.48 - // fprintf(loop_output,"sync%d_%d [shape=rect,label=\"Sync\"];\n",coreIdx,_VMSMasterEnv->loop_counter[coreIdx]); 1.49 - //} 1.50 - fprintf(loop_output,"}\n"); 1.51 - } else 1.52 - printf("Opening Loop Graph file failed. Please check that folder \"counters\" exists in run directory.\n"); 1.53 - } else { 1.54 - printf("Could not open Loop Graph file, please clean \"counters\" folder. (Must contain less than 255 files.)\n"); 1.55 - } 1.56 -#endif 1.57 + 1.58 #ifdef MEAS__TIME_PLUGIN 1.59 printHist( _VMSMasterEnv->reqHdlrLowTimeHist ); 1.60 saveHistToFile( _VMSMasterEnv->reqHdlrLowTimeHist );
