Member-only story

How to profile a mix task

Dunya Kirkali
Dec 17, 2020

Sometimes it might be handy to see how long Elixir/Erlang has spent on a certain function.

If you have a standalone script, this is as easy as:

However, since we Elixir developers tend to work TDD, most of the code we’d like to profile is already in our test suite.

Then you can use:

And you’ll get something like:

Or one can always use exprof module

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Dunya Kirkali
Dunya Kirkali

Written by Dunya Kirkali

I'm an engineering manager passionate about empowering engineers to deliver exceptional work through collaboration and innovation.

No responses yet

Write a response