sbITimingService Interface Reference

An interface for running simple, time based, profiling. More...

import"sbITimingService.idl";

Inheritance diagram for sbITimingService:
[legend]
Collaboration diagram for sbITimingService:
[legend]

Public Member Functions

void startPerfTimer (in AString aTimerName)
 Start a performance timer. More...
 
long long stopPerfTimer (in AString aTimerName)
 Stop a performance timer. More...
 

Public Attributes

attribute boolean enabled
 Output the results of each timer to standard output when the service is shutdown. This is on by default. More...
 
attribute nsIFile logFile
 Output the results to a log file. This is off by default. To enable, simple set this attribute to the log file you wish to use. More...
 

Detailed Description

An interface for running simple, time based, profiling.

Definition at line 42 of file sbITimingService.idl.

Member Function Documentation

void sbITimingService::startPerfTimer ( in AString  aTimerName)

Start a performance timer.

Parameters
aTimerNameA unique name for the performance timer.
Exceptions
NS_ERROR_ALREADY_INITIALIZEDif a timer of the same name already exists.
long long sbITimingService::stopPerfTimer ( in AString  aTimerName)

Stop a performance timer.

Parameters
aTimerNameThe unique name of the performance timer.
Exceptions
NS_ERROR_NOT_INITIALIZEDif the timer was never initialized before being stopped or is already stopped.
Returns
The delta between the start and the stop time in microseconds.

Member Data Documentation

attribute boolean sbITimingService::enabled

Output the results of each timer to standard output when the service is shutdown. This is on by default.

Definition at line 48 of file sbITimingService.idl.

attribute nsIFile sbITimingService::logFile

Output the results to a log file. This is off by default. To enable, simple set this attribute to the log file you wish to use.

Definition at line 55 of file sbITimingService.idl.


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