Coz profiling for Crystal.
-
Add the dependency to your
shard.yml
:dependencies: coz: github: RX14/coz.cr
-
Run
shards install
require "coz"
# Progress point
Coz.progress
# Named progress point
Coz.progress("foo")
# Latency profiling
Coz.begin("foo")
foo(...)
Coz.end("foo")
# Latency profiling with block
Coz.latency("foo") { foo(...) }
Run as usual with coz run --- ./executable
- Fork it (https://github.com/RX14/coz.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- RX14 - creator and maintainer