Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison ProcrContext.c @ 184:50b29548d4f0
handler interface for counters... not working
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 13 Jan 2012 15:03:32 +0100 |
| parents | 981acd1db6af |
| children | 20358f56e498 |
comparison
equal
deleted
inserted
replaced
| 9:d6c65a666ead | 11:e0d6a5fc8efd |
|---|---|
| 59 //gettimeofday( &(timeStamp), NULL); | 59 //gettimeofday( &(timeStamp), NULL); |
| 60 //newPr->createPtInSecs = timeStamp.tv_sec +(timeStamp.tv_usec/1000000.0) - | 60 //newPr->createPtInSecs = timeStamp.tv_sec +(timeStamp.tv_usec/1000000.0) - |
| 61 // _VMSMasterEnv->createPtInSecs; | 61 // _VMSMasterEnv->createPtInSecs; |
| 62 #endif | 62 #endif |
| 63 #ifdef MEAS__PERF_COUNTERS | 63 #ifdef MEAS__PERF_COUNTERS |
| 64 /* | |
| 64 newPr->counter_history = VMS__malloc(10*sizeof(void*)); | 65 newPr->counter_history = VMS__malloc(10*sizeof(void*)); |
| 65 newPr->counter_history_array_info = makePrivDynArrayInfoFrom((void*)&(newPr->counter_history),10); | 66 newPr->counter_history_array_info = makePrivDynArrayInfoFrom((void*)&(newPr->counter_history),10); |
| 66 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); | 67 CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord)); |
| 67 newRecord->task_position = 0; | 68 newRecord->task_position = 0; |
| 68 newRecord->vp_id = newPr->procrID; | 69 newRecord->vp_id = newPr->procrID; |
| 70 newRecord->sc_done_cycles = 0; | 71 newRecord->sc_done_cycles = 0; |
| 71 newRecord->sc_done_instrs = 0; | 72 newRecord->sc_done_instrs = 0; |
| 72 newRecord->req_cycles = 0; | 73 newRecord->req_cycles = 0; |
| 73 newRecord->req_instrs = 0; | 74 newRecord->req_instrs = 0; |
| 74 addToDynArray( (void*) newRecord, newPr->counter_history_array_info); | 75 addToDynArray( (void*) newRecord, newPr->counter_history_array_info); |
| 76 */ | |
| 75 #endif | 77 #endif |
| 76 //======================================================================== | 78 //======================================================================== |
| 77 | 79 |
| 78 return newPr; | 80 return newPr; |
| 79 } | 81 } |
