comparison MasterLoop.c @ 167:981acd1db6af

Separate UCC recording from VMS core and put it into SSR plugin
author Nina Engelhardt
date Mon, 05 Dec 2011 18:59:48 +0100
parents aefd87f9d12f
children 3bd35fc83c61
comparison
equal deleted inserted replaced
43:16895dd3ea7b 44:6b73db47858f
165 //End of task, start of next task 165 //End of task, start of next task
166 //print counters from last run 166 //print counters from last run
167 addToDynArray((void*)lastRecord,masterEnv->counter_history_array_info); 167 addToDynArray((void*)lastRecord,masterEnv->counter_history_array_info);
168 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); 168 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput);
169 169
170 Dependency* newd = new_dependency(currSlot->procrAssignedToSlot->procrID,lastRecord->task_position,currSlot->procrAssignedToSlot->procrID,lastRecord->task_position + 1); 170
171 addToDynArray((void*) newd ,masterEnv->dependenciesInfo);
172 171
173 172
174 173
175 //print_record_human_readable(lastRecord); 174 //print_record_human_readable(lastRecord);
176 //create new entry in record array 175 //create new entry in record array
215 if( schedVirtPr != NULL ) 214 if( schedVirtPr != NULL )
216 { currSlot->procrAssignedToSlot = schedVirtPr; 215 { currSlot->procrAssignedToSlot = schedVirtPr;
217 schedVirtPr->schedSlot = currSlot; 216 schedVirtPr->schedSlot = currSlot;
218 currSlot->needsProcrAssigned = FALSE; 217 currSlot->needsProcrAssigned = FALSE;
219 numSlotsFilled += 1; 218 numSlotsFilled += 1;
219 schedVirtPr->numTimesScheduled++;
220 #ifdef MEAS__PERF_COUNTERS 220 #ifdef MEAS__PERF_COUNTERS
221 //end assigner 221 //end assigner
222 int lastRecordIdx = currSlot->procrAssignedToSlot->counter_history_array_info->numInArray -1; 222 int lastRecordIdx = currSlot->procrAssignedToSlot->counter_history_array_info->numInArray -1;
223 CounterRecord* lastRecord = currSlot->procrAssignedToSlot->counter_history[lastRecordIdx]; 223 CounterRecord* lastRecord = currSlot->procrAssignedToSlot->counter_history[lastRecordIdx];
224 lastRecord->assigning_core = thisCoresIdx; 224 lastRecord->assigning_core = thisCoresIdx;