Elixir: Find slow compiling modules

Posted on September 4, 2021
Tags: elixir

Run:

mix compile --force --profile time > profile.txt 2>&1

Then open the file with vim/nvim:

:v/profile/d

^ This deletes all the warnings and other output that we are not interested in.

Then run:

:sort n

This will sort the module compile time ascending.