import "sbITimingService.idl";
Public Member Functions | |
void | startPerfTimer (in AString aTimerName) |
Start a performance timer. | |
long long | stopPerfTimer (in AString aTimerName) |
Stop a performance timer. | |
Public Attributes | |
attribute boolean | enabled |
Output the results of each timer to standard output when the service is shutdown. This is on by default. | |
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. |
Definition at line 42 of file sbITimingService.idl.
void sbITimingService::startPerfTimer | ( | in AString | aTimerName | ) |
Start a performance timer.
aTimerName | A unique name for the performance timer. |
NS_ERROR_ALREADY_INITIALIZED | if a timer of the same name already exists. |
long long sbITimingService::stopPerfTimer | ( | in AString | aTimerName | ) |
Stop a performance timer.
aTimerName | The unique name of the performance timer. |
NS_ERROR_NOT_INITIALIZED | if the timer was never initialized before being stopped or is already stopped. |