GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > TRC / V1-0-1

Constituent: trc     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

TRC_monitor.c File Reference

Facilities to monitor CPU performance. More...

#include <string.h>
#include "MDB/MDB_pubdefs.h"
#include "PBS/WCT.h"
#include "TRC/TRC_msgs.h"
#include "TRC_prvdefs.h"

Include dependency graph for TRC_monitor.c:


Functions

unsigned int TRC_differMonitor (TRC_Monitor *old, TRC_Monitor *new, TRC_Top *top)
 Take the difference between monitor snapshots.
unsigned int TRC_sizeofMonitor ()
 The size of a buffer to accomodate a task monitor snapshot.
unsigned int TRC_sizeofTop ()
 The size of a buffer to accomodate a task monitor snapshot.
unsigned int TRC_snapMonitor (TRC_Monitor *mon)
 Snapshot the task monitor structure.

Detailed Description

Facilities to monitor CPU performance.

CVS $Id: TRC_monitor.c,v 1.2 2007/05/23 23:44:52 apw Exp $
Author:
A.P.Waite
TRC_monitor.c provides facilities to monitor CPU performance

Function Documentation

unsigned int TRC_differMonitor TRC_Monitor old,
TRC_Monitor new,
TRC_Top top
 

Take the difference between monitor snapshots.

Parameters:
old (in) Record at start of sampling period
new (in) Record at end of sampling period
top (out) Differential monitor record
Return values:
TRC_MONMATCH Monitor record serial numbers do not match
TRC_NOCALC Time mis-ordered (or zero), cannot calculate
TRC_NOOLDMON Older monitor buffer not valid for differencing
TRC_NOTMON Invalid monitor record
TRC_PARMNULL NULL parameter detected
TRC_SUCCESS Success
TRC_differMonitor() knows how to take the "difference" between two monitor records and place a summary in the output TRC_Top structure.

unsigned int TRC_sizeofMonitor void   ) 
 

The size of a buffer to accomodate a task monitor snapshot.

Return values:
x Size of a buffer to hold a task monitor snapshot

unsigned int TRC_sizeofTop void   ) 
 

The size of a buffer to accomodate a task monitor snapshot.

Return values:
x Size of a buffer to hold a task monitor snapshot

unsigned int TRC_snapMonitor TRC_Monitor mon  ) 
 

Snapshot the task monitor structure.

Parameters:
mon (out) Where to put the results
Return values:
TRC_PARMNULL NULL parameter detected
TRC_NOTINIT Trace system not in state initialized
TRC_SUCCESS Success
TRC_snapMonitor() copies the current monitor contents of the task to name table to a lookaside monitor buffer.


Generated on Fri May 25 05:17:27 2007 by  doxygen 1.4.4