Kitto v0.9.1 Kitto.StatsServer View Source

Module responsible for keeping stats about jobs.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Executes the given function and keeps stats about it in the provided key

Resets the current stats

Returns the current stats

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function measure(job) View Source
measure(map) :: :ok

Executes the given function and keeps stats about it in the provided key

Resets the current stats

Link to this function reset(server) View Source
reset(pid | atom) :: :ok

Returns the current stats

Link to this function stats(server) View Source
stats(pid | atom) :: map