changeset 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
files VMS.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/VMS.c	Tue Sep 07 18:40:57 2010 -0700
     1.2 +++ b/VMS.c	Sat Sep 11 03:26:07 2010 -0700
     1.3 @@ -130,7 +130,10 @@
     1.4  
     1.5     //============================= MEASUREMENT STUFF ========================
     1.6     #ifdef MEAS__TIME_STAMP_SUSP
     1.7 -   _VMSMasterEnv->measSuspHist   = makeHistogram( 25, 110, 135 );
     1.8 +      //RDTSC may run out of order, and so measure a time-span different
     1.9 +      // from the desired time-span  --  got some weird changes in suspend
    1.10 +      // hist when added Master hist
    1.11 +   _VMSMasterEnv->measSuspHist   = makeHistogram( 25, 110, 1300 );
    1.12     #endif
    1.13  
    1.14     #ifdef MEAS__TIME_MASTER
    1.15 @@ -369,12 +372,7 @@
    1.16                  );
    1.17  
    1.18     #ifdef MEAS__TIME_STAMP_SUSP
    1.19 -      //record time stamp into animating procr: compared to time-stamp
    1.20 -      // recorded below, at the resume pt.
    1.21 -      //NOTE: doing minimal work here 'cause only a few instrs executed in
    1.22 -      // core loop, so only using bottom half of time-stamp -- have to
    1.23 -      // externally do sanity check & throw out absurd values due to rollover
    1.24 -
    1.25 +      //record time stamp: compare to time-stamp recorded below, at resume
    1.26     saveLowTimeStampCountInto( animatingPr->preSuspTSCLow );
    1.27     #endif
    1.28