comparison VMS.c @ 40:1df8d7f2c9b1

Added measurement of suspend time and master time Weird suspend-time histogram -- will try moving hist update out of coreloop and into app
author Me
date Sat, 11 Sep 2010 03:26:07 -0700
parents 17d20e5cf924
children cf3e9238aeb0
comparison
equal deleted inserted replaced
16:26c99a33a71e 17:765ef4a5f6ed
128 128
129 // initFreeList(); 129 // initFreeList();
130 130
131 //============================= MEASUREMENT STUFF ======================== 131 //============================= MEASUREMENT STUFF ========================
132 #ifdef MEAS__TIME_STAMP_SUSP 132 #ifdef MEAS__TIME_STAMP_SUSP
133 _VMSMasterEnv->measSuspHist = makeHistogram( 25, 110, 135 ); 133 //RDTSC may run out of order, and so measure a time-span different
134 // from the desired time-span -- got some weird changes in suspend
135 // hist when added Master hist
136 _VMSMasterEnv->measSuspHist = makeHistogram( 25, 110, 1300 );
134 #endif 137 #endif
135 138
136 #ifdef MEAS__TIME_MASTER 139 #ifdef MEAS__TIME_MASTER
137 _VMSMasterEnv->measMasterHist = makeHistogram( 25, 500, 800 ); 140 _VMSMasterEnv->measMasterHist = makeHistogram( 25, 500, 800 );
138 #endif 141 #endif
367 /* inputs */ : \ 370 /* inputs */ : \
368 /* clobber */ : "%eax" \ 371 /* clobber */ : "%eax" \
369 ); 372 );
370 373
371 #ifdef MEAS__TIME_STAMP_SUSP 374 #ifdef MEAS__TIME_STAMP_SUSP
372 //record time stamp into animating procr: compared to time-stamp 375 //record time stamp: compare to time-stamp recorded below, at resume
373 // recorded below, at the resume pt.
374 //NOTE: doing minimal work here 'cause only a few instrs executed in
375 // core loop, so only using bottom half of time-stamp -- have to
376 // externally do sanity check & throw out absurd values due to rollover
377
378 saveLowTimeStampCountInto( animatingPr->preSuspTSCLow ); 376 saveLowTimeStampCountInto( animatingPr->preSuspTSCLow );
379 #endif 377 #endif
380 378
381 //restore coreloop's frame ptr, then jump back to "start" of core loop 379 //restore coreloop's frame ptr, then jump back to "start" of core loop
382 //Note, GCC compiles to assembly that saves esp and ebp in the stack 380 //Note, GCC compiles to assembly that saves esp and ebp in the stack