Public Member Functions | Static Public Member Functions | Public Attributes

mozilla::FunctionTimer Class Reference

#include <FunctionTimer.h>

Collaboration diagram for mozilla::FunctionTimer:

List of all members.

Public Member Functions

void TimeInit ()
double Elapsed ()
double ElapsedSinceMark ()
 FunctionTimer (double minms, const char *s,...)
 FunctionTimer (const char *s,...)
void Mark (const char *s,...)
 ~FunctionTimer ()

Static Public Member Functions

static int InitTimers ()
static int ft_vsnprintf (char *str, int maxlen, const char *fmt, va_list args)
static int ft_snprintf (char *str, int maxlen, const char *fmt,...)
static void LogMessage (const char *s,...)
static TimeDuration LatestSinceStartup ()

Public Attributes

TimeStamp mStart
TimeStamp mLastMark
const double mMinMs
char mString [BUF_LOG_LENGTH+1]
const PRBool mHasMinMs
const PRBool mEnabled
const unsigned mDepth

Constructor & Destructor Documentation

mozilla::FunctionTimer::FunctionTimer ( double  minms,
const char *  s,
  ... 
) [inline]
mozilla::FunctionTimer::FunctionTimer ( const char *  s,
  ... 
) [inline]
mozilla::FunctionTimer::~FunctionTimer (  )  [inline]

Member Function Documentation

double mozilla::FunctionTimer::Elapsed (  )  [inline]
double mozilla::FunctionTimer::ElapsedSinceMark (  )  [inline]
static int mozilla::FunctionTimer::ft_snprintf ( char *  str,
int  maxlen,
const char *  fmt,
  ... 
) [static]
static int mozilla::FunctionTimer::ft_vsnprintf ( char *  str,
int  maxlen,
const char *  fmt,
va_list  args 
) [static]
static int mozilla::FunctionTimer::InitTimers (  )  [static]
static TimeDuration mozilla::FunctionTimer::LatestSinceStartup (  )  [inline, static]
static void mozilla::FunctionTimer::LogMessage ( const char *  s,
  ... 
) [inline, static]
void mozilla::FunctionTimer::Mark ( const char *  s,
  ... 
) [inline]
void mozilla::FunctionTimer::TimeInit (  )  [inline]

Member Data Documentation

char mozilla::FunctionTimer::mString[BUF_LOG_LENGTH+1]

The documentation for this class was generated from the following file: