diff ProcrContext.c @ 109:659299627e70

counters done
author Nina Engelhardt
date Tue, 02 Aug 2011 17:16:12 +0200
parents 3bc3b89630c7
children b1817e2451b1
line diff
     1.1 --- a/ProcrContext.c	Tue Jul 26 15:36:24 2011 +0200
     1.2 +++ b/ProcrContext.c	Tue Aug 02 17:16:12 2011 +0200
     1.3 @@ -59,7 +59,12 @@
     1.4     //newPr->createPtInSecs = timeStamp.tv_sec +(timeStamp.tv_usec/1000000.0) -
     1.5     //                                            _VMSMasterEnv->createPtInSecs;
     1.6     #endif
     1.7 -
     1.8 +   #ifdef MEAS__PERF_COUNTERS
     1.9 +   newPr->counter_history = VMS__malloc(10*sizeof(void*));
    1.10 +   newPr->counter_history_array_info = makePrivDynArrayInfoFrom(&(newPr->counter_history),10);
    1.11 +   CounterRecord* newRecord = VMS__malloc(sizeof(CounterRecord));
    1.12 +   addToDynArray( (void*) newRecord, newPr->counter_history_array_info);
    1.13 +   #endif
    1.14     //========================================================================
    1.15  
    1.16     return newPr;