Pace
This library implements a light weight process that can be used to easily analyse the performance of your applicaiton.
Usage
If available in Hex, the package can be installed as:
Add
pace
to your list of dependencies inmix.exs
:def deps do [{:pace, "~> 0.1.0"}] end ```
Start a pace process sometime in your application:
{:ok, pid} = Pace.start_link ```
The following api is exposed:
send pid, :restart # restarts the server's timer send pid, {:lap, "message"} # logs a lap message containing the pid of the pace process, current time ellapsed, and message send pid, :stop # logs a termination message containing the pid of the pace process and current time ellapsed. the timer process is stopped ```