Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison MasterLoop.c @ 110:724c7a0b687f
save counters to file in csv
| author | Nina Engelhardt |
|---|---|
| date | Wed, 03 Aug 2011 17:05:18 +0200 |
| parents | 659299627e70 |
| children | b1817e2451b1 |
comparison
equal
deleted
inserted
replaced
| 27:4a706503d149 | 28:8f8a566807c7 |
|---|---|
| 152 CounterRecord* lastRecord = currSlot->procrAssignedToSlot->counter_history[lastRecordIdx]; | 152 CounterRecord* lastRecord = currSlot->procrAssignedToSlot->counter_history[lastRecordIdx]; |
| 153 lastRecord->req_core = thisCoresIdx; | 153 lastRecord->req_core = thisCoresIdx; |
| 154 saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs); | 154 saveCyclesAndInstrs(thisCoresIdx,lastRecord->req_cycles,lastRecord->req_instrs); |
| 155 //End of task, start of next task | 155 //End of task, start of next task |
| 156 //print counters from last run | 156 //print counters from last run |
| 157 print_record(lastRecord); | 157 print_record_csv_to_file(lastRecord,_VMSMasterEnv->counteroutput); |
| 158 //create new entry in record array | 158 //create new entry in record array |
| 159 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); | 159 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); |
| 160 newRecord->req_core = thisCoresIdx; | 160 newRecord->req_core = thisCoresIdx; |
| 161 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID; | 161 newRecord->vp_id = currSlot->procrAssignedToSlot->procrID; |
| 162 getReturnAddressBeforeLibraryCall(currSlot->procrAssignedToSlot, &(newRecord->addr_of_libcall_for_req)); | |
| 162 addToDynArray( (void*) newRecord, currSlot->procrAssignedToSlot->counter_history_array_info); | 163 addToDynArray( (void*) newRecord, currSlot->procrAssignedToSlot->counter_history_array_info); |
| 163 lastRecord = newRecord; | 164 lastRecord = newRecord; |
| 164 #endif | 165 #endif |
| 165 //============================================================ | 166 //============================================================ |
| 166 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); | 167 (*requestHandler)( currSlot->procrAssignedToSlot, semanticEnv ); |
