Created
August 16, 2022 13:27
-
-
Save ddoronin/61fac86380fb3ecccc01ce29c39cce90 to your computer and use it in GitHub Desktop.
Profiling Elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{time, your_func_result} = :timer.tc(&your_func/arity, [your_func-args]) | |
If you have discovered this function, please upvote the original answer by Sainik on stackoverflow here: | |
https://stackoverflow.com/questions/29668635/how-can-we-easily-time-function-calls-in-elixir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment