-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tprof :) #439
Comments
👋 Thanks for coming here! I was gonna say it may be hard, but it may actually be trivial. The reason being, profilers are built on the back of the accompanying mix tasks. But such a mix tasks exists for tprof: https://hexdocs.pm/mix/Mix.Tasks.Profile.Tprof.html So this might be so trivial, I might just try it straight up :) That said, I've also been thinking about more general profiler support i.e. eflambe as I saw someone use it in a talk recently :) Right let me make an issue about that! |
Re
Right now they use a slightly hack-y approach of mocking the profiled functions which I think can and should be avoided. So if my suggestions there are accepted, it would be equivalent to using |
@ruslandoga sorry eflambe/more generic plugin support for tracers was just a side idea/you reminded me I wanted to open up #440 :) Thanks for your input/thoughts about them - I'm not very familiar with them! |
* Fixes #439 * also fixes one of the samples not being an .exs 😁 * also updates it and includes tprof * might consider only adding it on elixir 1.17+ but may be too much * still needs to be added to docs
@ruslandoga yeah was easy, it's over at #441 I'll need to add some docs and maybe a fail-safe or 2. Are you fine running off that branch or later main or would you need a release? I'd normally wait with a release :) |
I'm totally fine running off of that branch. Thank you! |
👋
Thoughts on adding tprof profiler? It can also potentially allow for more accurate memory measurements (just from reading the docs, I haven't actually used it yet).
Right now using
profile_after: :tprof
fails withI'd be happy to contribute! (But again, I haven't used it yet so I am not sure how hard it would be to support)
The text was updated successfully, but these errors were encountered: