comparison VMS.h @ 65:13b22ffb8a2f

Nov 14 vers -- Added measurement of Plugin, malloc, & master lock, + vutilities
author Me
date Sun, 14 Nov 2010 11:17:52 -0800
parents 5cb919ac890f
children bf08108405cc 2377967a2732
comparison
equal deleted inserted replaced
32:45246a843d11 33:0f48c1903db9
59 //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and 59 //when MEAS__TIME_STAMP_SUSP is defined, causes code to be inserted and
60 // compiled-in that saves the low part of the time stamp count just before 60 // compiled-in that saves the low part of the time stamp count just before
61 // suspending a processor and just after resuming that processor. It is 61 // suspending a processor and just after resuming that processor. It is
62 // saved into a field added to VirtProcr. Have to sanity-check for 62 // saved into a field added to VirtProcr. Have to sanity-check for
63 // rollover of low portion into high portion. 63 // rollover of low portion into high portion.
64 #define MEAS__TIME_STAMP_SUSP 64 //#define MEAS__TIME_STAMP_SUSP
65 #define MEAS__TIME_MASTER 65 //#define MEAS__TIME_MASTER
66 //#define MEAS__TIME_PLUGIN
67 //#define MEAS__TIME_MALLOC
68 #define MEAS__TIME_MASTER_LOCK
66 #define MEAS__NUM_TIMES_TO_RUN 100000 69 #define MEAS__NUM_TIMES_TO_RUN 100000
67 70
68 //For code that calculates normalization-offset between TSC counts of 71 //For code that calculates normalization-offset between TSC counts of
69 // different cores. 72 // different cores.
70 #define NUM_TSC_ROUND_TRIPS 10 73 #define NUM_TSC_ROUND_TRIPS 10
190 //=========== MEASUREMENT STUFF ========== 193 //=========== MEASUREMENT STUFF ==========
191 #ifdef MEAS__TIME_STAMP_SUSP 194 #ifdef MEAS__TIME_STAMP_SUSP
192 unsigned int preSuspTSCLow; 195 unsigned int preSuspTSCLow;
193 unsigned int postSuspTSCLow; 196 unsigned int postSuspTSCLow;
194 #endif 197 #endif
195 #ifdef MEAS__TIME_MASTER 198 #ifdef MEAS__TIME_MASTER /* in VirtProcr because multiple masterVPs*/
196 unsigned int startMasterTSCLow; 199 unsigned int startMasterTSCLow;
197 unsigned int endMasterTSCLow; 200 unsigned int endMasterTSCLow;
198 #endif 201 #endif
202 //========================================
199 203
200 float64 createPtInSecs; //have space but don't use on some configs 204 float64 createPtInSecs; //have space but don't use on some configs
201 }; 205 };
202 //VirtProcr 206 //VirtProcr
203 207
236 IntervalProbe **intervalProbes; 240 IntervalProbe **intervalProbes;
237 PrivDynArrayInfo *dynIntervalProbesInfo; 241 PrivDynArrayInfo *dynIntervalProbesInfo;
238 HashTable *probeNameHashTbl; 242 HashTable *probeNameHashTbl;
239 int32 masterCreateProbeID; 243 int32 masterCreateProbeID;
240 float64 createPtInSecs; 244 float64 createPtInSecs;
245 #ifdef MEAS__TIME_PLUGIN
246 Histogram *pluginLowTimeHist;
247 Histogram *pluginHighTimeHist;
248 #endif
249 #ifdef MEAS__TIME_MALLOC
250 Histogram *mallocTimeHist;
251 Histogram *freeTimeHist;
252 #endif
253 #ifdef MEAS__TIME_MASTER_LOCK
254 Histogram *masterLockLowTimeHist;
255 Histogram *masterLockHighTimeHist;
256 #endif
241 } 257 }
242 MasterEnv; 258 MasterEnv;
243 259
244 //========================= Extra Stuff Data Strucs ======================= 260 //========================= Extra Stuff Data Strucs =======================
245 typedef struct 261 typedef struct
376 ); 392 );
377 //===== 393 //=====
378 394
379 #include "SwitchAnimators.h" 395 #include "SwitchAnimators.h"
380 #include "probes.h" 396 #include "probes.h"
397 #include "vutilities.h"
381 398
382 #endif /* _VMS_H */ 399 #endif /* _VMS_H */
383 400