CDPotion.Domain.Performance (cdpotion v0.1.0)

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.

Functions

Disable collecting and reporting metrics.

Link to this function

enable(time_domain \\ nil)

Enable collecting and reporting metrics.

Parameters:

  • timeDomain:string: (Optional) Time domain to use for collecting and reporting duration 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:

  • timeDomain:string: Time domain