FMLiveSwitchDiagnosticsTimers Class Reference

The management class for all diagnostic timers. More...

Class Methods

(bool) + enabled
 Gets whether the timings diagnostics are enabled or not. More...
 
(FMLiveSwitchDiagnosticsDurationTimer *) + getDurationTimerWithTag:
 Gets a duration timer with a specific tag. More...
 
(FMLiveSwitchDiagnosticsDurationTimer *) + getDurationTimerWithType:
 Gets a duration timer with a tag corresponding to a type name. More...
 
(FMLiveSwitchDiagnosticsRateTimer *) + getRateTimerWithTag:
 Gets a rate timer with a specific tag. More...
 
(FMLiveSwitchDiagnosticsRateTimer *) + getRateTimerWithType:
 Gets a rate timer with a tag corresponding to a type name. More...
 
(int) + outputInterval
 Gets the output interval (in seconds) for diagnostic timings. More...
 
(FMLiveSwitchLogLevel) + outputLogLevel
 Gets the log level to use when outputting the timings. More...
 
(void) + setOutputInterval:
 Sets the output interval (in seconds) for diagnostic timings. More...
 
(void) + setOutputLogLevel:
 Sets the log level to use when outputting the timings. More...
 

Detailed Description

The management class for all diagnostic timers.

Method Documentation

◆ enabled

+ (bool) enabled

Gets whether the timings diagnostics are enabled or not.

◆ getDurationTimerWithTag:

+ (FMLiveSwitchDiagnosticsDurationTimer*) getDurationTimerWithTag: (NSString *)  tag

Gets a duration timer with a specific tag.

Parameters
tagThe tag.

◆ getDurationTimerWithType:

+ (FMLiveSwitchDiagnosticsDurationTimer*) getDurationTimerWithType: (Class)  type

Gets a duration timer with a tag corresponding to a type name.

Parameters
typeThe type.

◆ getRateTimerWithTag:

+ (FMLiveSwitchDiagnosticsRateTimer*) getRateTimerWithTag: (NSString *)  tag

Gets a rate timer with a specific tag.

Parameters
tagThe tag.

◆ getRateTimerWithType:

+ (FMLiveSwitchDiagnosticsRateTimer*) getRateTimerWithType: (Class)  type

Gets a rate timer with a tag corresponding to a type name.

Parameters
typeThe type.

◆ outputInterval

+ (int) outputInterval

Gets the output interval (in seconds) for diagnostic timings.

Setting to 0 disables.

◆ outputLogLevel

+ (FMLiveSwitchLogLevel) outputLogLevel

Gets the log level to use when outputting the timings.

◆ setOutputInterval:

+ (void) setOutputInterval: (int)  value

Sets the output interval (in seconds) for diagnostic timings.

Setting to 0 disables.

◆ setOutputLogLevel:

+ (void) setOutputLogLevel: (FMLiveSwitchLogLevel)  value

Sets the log level to use when outputting the timings.