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
Rails 6 EventProf Empty #181
Comments
Do you use something like As I see, the old style subscribers (with As I see, the difference is intentional: rails/rails@b9a9131 I think, using |
We do use Can I help assist further? |
Thanks but I've already started working on a fix) |
@philipbjorge Fixed in master. Will be released soon (after we finish #178). |
@palkan -- Really appreciate it! This library just helped us shave 30-45% off of our system spec suite runtimes with potential downstream savings for other projects. |
Tell us about your environment
Ruby Version: 2.6.5
Framework Version (RSpec, Minitest, FactoryGirl, Rails, whatever): RSpec 3.8, Rails 6.0.2.1
TestProf Version: 0.11.3
What did you do?
Ran
env EVENT_PROF_TOP=3 EVENT_PROF_EXAMPLES=1 EVENT_PROF='factory.create,perform.active_job,sql.active_record' bundle exec rspec spec/system
What did you expect to happen?
I expected to see EventProf results...
What actually happened?
Details
When I attached and set a breakpoint here: https://github.com/palkan/test-prof/blob/master/lib/test_prof/event_prof/instrumentations/active_support.rb#L12
The result for
(finish - start)
was always 0.When I changed the code to the following:
I started getting profiling results!
Code was based on: https://blog.bigbinary.com/2019/04/24/rails-6-adds-cpu-time-idle-time-and-allocations-to-activesupport-notifications-event.html
The text was updated successfully, but these errors were encountered: