Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.c @ 165:fe3ff53b55a6
initialization of unused fields in 1st VP task
| author | Nina Engelhardt |
|---|---|
| date | Wed, 28 Sep 2011 14:58:41 +0200 |
| parents | 5475f90c248a |
| children | aefd87f9d12f d7c0c0a8187a |
comparison
equal
deleted
inserted
replaced
| 56:36a0d1c4d8a3 | 57:daa5859e7392 |
|---|---|
| 190 _VMSMasterEnv->dependencies = VMS__malloc(10*sizeof(void*)); | 190 _VMSMasterEnv->dependencies = VMS__malloc(10*sizeof(void*)); |
| 191 _VMSMasterEnv->dependenciesInfo = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->dependencies),10); | 191 _VMSMasterEnv->dependenciesInfo = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->dependencies),10); |
| 192 #endif | 192 #endif |
| 193 | 193 |
| 194 #ifdef MEAS__PERF_COUNTERS | 194 #ifdef MEAS__PERF_COUNTERS |
| 195 _VMSMasterEnv->counter_history = VMS__malloc(10*sizeof(void*)); | |
| 196 _VMSMasterEnv->counter_history_array_info = makePrivDynArrayInfoFrom((void***)&(_VMSMasterEnv->counter_history),10); | |
| 195 //printf("Creating HW counters..."); | 197 //printf("Creating HW counters..."); |
| 196 FILE* output; | 198 FILE* output; |
| 197 int n; | 199 int n; |
| 198 char filename[255]; | 200 char filename[255]; |
| 199 for(n=0;n<255;n++) | 201 for(n=0;n<255;n++) |
| 795 printf("Saving Dependencies to File: %s ...\n", filename); | 797 printf("Saving Dependencies to File: %s ...\n", filename); |
| 796 output = fopen(filename,"w+"); | 798 output = fopen(filename,"w+"); |
| 797 if(output!=NULL){ | 799 if(output!=NULL){ |
| 798 set_dependency_file(output); | 800 set_dependency_file(output); |
| 799 fprintf(output,"digraph Dependencies {\n"); | 801 fprintf(output,"digraph Dependencies {\n"); |
| 800 | 802 set_dot_file(output); |
| 803 forAllInDynArrayDo(_VMSMasterEnv->counter_history_array_info, &print_dot_node_info ); | |
| 801 forAllInDynArrayDo( _VMSMasterEnv->dependenciesInfo, &print_dependency_to_file ); | 804 forAllInDynArrayDo( _VMSMasterEnv->dependenciesInfo, &print_dependency_to_file ); |
| 802 fprintf(output,"}\n"); | 805 fprintf(output,"}\n"); |
| 803 } else | 806 } else |
| 804 printf("Opening Dependencies file failed. Please check that folder \"counters\" exists in run directory.\n"); | 807 printf("Opening Dependencies file failed. Please check that folder \"counters\" exists in run directory.\n"); |
| 805 } else { | 808 } else { |
