CDPotion.Domain.Performance (cdpotion v0.1.4)
Summary
Functions
Disable collecting and reporting metrics.
Enable collecting and reporting metrics.
Retrieve current values of run-time metrics.
Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.
Types
Link to this type
metric()
Run-time execution metric.
Functions
Link to this function
disable()
Disable collecting and reporting metrics.
Link to this function
enable(time_domain \\ nil)
Enable collecting and reporting metrics.
Parameters:
- (Optional)
time_domain
: Time domain to use for collecting and reporting duration metrics.
Link to this function
get_metrics()
Retrieve current values of run-time metrics.
Link to this function
set_time_domain(time_domain)
Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.
Parameters:
- (Required)
time_domain
: Time domain