Is there a way to see which parts of your code are slower?

I have some code… is there a way to peek into the workings of my code to isolate the slow parts?

2 Likes

We use flamegraphs for determining potential optimizations of operations or algroithms. But there are also a lot of issues such as bottlenecks that are harder or impossible to find with flamegraphs. For that sorta stuff I often jump into observer to get a sense of whats happening in the running system.

What do you use to generate the flamegraphs in Elixir?

1 Like

This package: https://hex.pm/packages/eflame

4 Likes

Cool, I’ve never seen before, I’ll try to make some time to play with it.

The tool / feature you’re looking for is “profiling”. Now whether that exists or not in the Elixir world, I don’t know.