Skip to content
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

Disable TracePoints when running the check-shims command #1082

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

rafaelfranca
Copy link
Member

When profiling why this command was taking so much time, I found out that in the specific application I was working on 37% of the time was spent in the TracePoint#method_id method.

Since we don't need this TracePoint enabled in this command, this patch disables it.

Profiling before

Screen Shot 2022-07-28 at 2 28 31 PM

Profiling after

Screen Shot 2022-07-28 at 2 29 06 PM

Total time went down from 3:50min to 1:20min

When profiling why this command was taking so much time, I found out that
in the specific application I was working on 37% of the time was spent in the
`TracePoint#method_id` method.

Since we don't need this TracePoint enabled in this command, this patch
disables it.
@rafaelfranca rafaelfranca requested a review from a team as a code owner July 28, 2022 18:30
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@rafaelfranca rafaelfranca merged commit 1b9139d into main Jul 28, 2022
@rafaelfranca rafaelfranca deleted the rm-disable-tracepoint-on-check branch July 28, 2022 20:31
@paracycle paracycle added bugfix backported Backported to stable branch labels Aug 22, 2022
paracycle pushed a commit that referenced this pull request Aug 22, 2022
Disable TracePoints when running the check-shims command
@andxyz
Copy link

andxyz commented Aug 23, 2022

slightly unrelated question.

@rafaelfranca The output of this tracing tool looks very nice
Might I ask which one the screenshots are from?

@rafaelfranca
Copy link
Member Author

@shopify-shipit shopify-shipit bot temporarily deployed to production August 31, 2022 14:40 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Backported to stable branch bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants