IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 11, 2007, 4:51:41 PM (20 years ago)
Author:
eugene
Message:

added timing stats, npending limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/include/pantasks.h

    r10694 r11055  
    2828
    2929enum {RANGE_ABS, RANGE_DAY, RANGE_WEEK};
     30enum {TIMER_ALLJOBS, TIMER_SUCCESS, TIMER_FAILURE};
    3031
    3132enum {TASK_NONE,
     
    4243      TASK_OPTIONS,
    4344      TASK_PERIODS,
     45      TASK_NPENDING,
    4446      TASK_EXIT,
    4547      TASK_EXEC
     
    8688  int     Njobs;
    8789
     90  int     Npending;  // number of currently pending jobs
     91  int     NpendingMax;  // max number of pending jobs allowed
     92
    8893  float   poll_period;
    8994  float   exec_period;
     
    95100  int Nfailure;
    96101  int Ntimeout;
     102
     103  double dtimeAve_alljobs, dtimeMin_alljobs, dtimeMax_alljobs;
     104  double dtimeAve_success, dtimeMin_success, dtimeMax_success;
     105  double dtimeAve_failure, dtimeMin_failure, dtimeMax_failure;
    97106
    98107  int active;
     
    140149  int         stdout_fd;                /* stdout pipe (local only) */
    141150  int         stderr_fd;                /* stderr pipe (local only) */
     151
     152  double dtime;
    142153} Job;
    143154
     
    167178int RemoveTask (Task *task);
    168179Task *SetNewTask (Task *task);
     180void ListTaskStats ();
     181void UpdateTaskTimerStats (Task *task, int mode, double dtime);
    169182
    170183int NextJobID ();
Note: See TracChangeset for help on using the changeset viewer.