Ignore:
Timestamp:
Dec 1, 2014, 7:09:11 AM (5 years ago)
Author:
ldelgass
Message:

Stats log fixes, also bump version

Location:
nanovis/branches/1.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.1

  • nanovis/branches/1.1/nanovis.h

    r4617 r4802  
    2020#include <md5.h>
    2121#include <GL/glew.h>
     22#include <sys/types.h> // For pid_t
     23#include <sys/time.h>  // For struct timeval
    2224
    2325#include <math.h>
     
    3335#include "config.h"
    3436
    35 #define NANOVIS_VERSION         "1.1.1"
     37#define NANOVIS_VERSION         "1.1.2"
    3638
    3739//defines for the image based flow visualization
     
    8082    };
    8183
     84    typedef struct {
     85        pid_t pid;
     86        size_t nFrames;            /**< # of frames sent to client. */
     87        size_t nBytes;             /**< # of bytes for all frames. */
     88        size_t nCommands;          /**< # of commands executed */
     89        double cmdTime;            /**< Elasped time spend executing
     90                                    * commands. */
     91        struct timeval start;      /**< Start of elapsed time. */
     92    } Stats;
     93
    8294    typedef std::string TransferFunctionId;
    8395    typedef std::string VolumeId;
     
    161173
    162174    static FILE *stdin, *logfile, *recfile;
     175    static Stats stats;
    163176    static int statsFile;
    164177    static unsigned int flags;
    165178    static bool debugFlag;
    166179    static bool axisOn;
    167     static struct timeval startTime;       ///< Start of elapsed time.
    168180
    169181    static int winWidth;        ///< Width of the render window
Note: See TracChangeset for help on using the changeset viewer.