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

rails: load performance hooks only if performance_stats is enabled #942

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Mar 28, 2019

We load these hooks unnecessarily for those customers who don't use performance
stats. It may cause an unwanted overhead for them: we spend CPU time collecting
info but never send it. In this commit we check if performance_stats is enabled
and include the hooks only if it is.

@kyrylo kyrylo force-pushed the performance-stats-hooks-fix branch from a5a8e16 to 4b4ed93 Compare March 28, 2019 17:33
@kyrylo kyrylo force-pushed the performance-stats-hooks-fix branch 5 times, most recently from 048cf41 to 577279a Compare March 29, 2019 18:59
We load these hooks unnecessarily for those customers who don't use performance
stats. It may cause an unwanted overhead for them: we spend CPU time collecting
info but never send it. In this commit we check if performance_stats is enabled
and include the hooks only if it is.
@kyrylo kyrylo force-pushed the performance-stats-hooks-fix branch from 577279a to b69c19b Compare March 29, 2019 19:02
@kyrylo kyrylo merged commit 1fce07b into master Mar 29, 2019
@kyrylo kyrylo deleted the performance-stats-hooks-fix branch March 29, 2019 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant