-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[11.0][IMP] profiler: 'Per HTTP request' mode #1986
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
Conversation
|
LGTM |
b3d4991 to
48a41ff
Compare
NL66278
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM. One nag, but not crucial
48a41ff to
29b8a06
Compare
|
@NL66278 Fixed. Thanks for the review. |
NL66278
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
|
I have tried to check it on It was great so far. If I tried to enable again the Profiler an error was raised. The same error was raised if I tried to enable a new profiler |
|
@etobella Big thanks for finding this silly bug. I was overwriting the |
|
I've also removed "attachment_id" from the tree view of requests; with many requests piling up in the list, it would do a lot of |
|
This PR has the |
|
/ocabot merge major |
|
What a great day to merge this nice PR. Let's do it! |
|
@moylop260 your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-1986-by-moylop260-bump-major. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
…erates a stats file for each request separately.
e7e16ef to
50ce2b4
Compare
|
@moylop260 Can you try again? It was a timing error in the tests |
|
/ocabot merge major |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at 60e019e. Thanks a lot for contributing to OCA. ❤️ |
Current profiling module only works with
workers=0so it is not useful in production.This patch adds a separate Python profiling mode 'Per request', which generates a cProfile stats file for each individual HTTP request of the user session that enabled it. This works in multi-worker mode also, and allows to see profiling data for the slow(est) requests only.
Now profiling can also be used in production with low overhead.
@moylop260 @etobella