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
Automatically enable fps debug while running a test #5
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
MaeIg
commented
Aug 5, 2022
•
edited
edited
Before | After |
---|---|
1. Don't run e2e test examples 2. Add new adb command to child_process mock
Almouro
approved these changes
Aug 5, 2022
Almouro
added a commit
that referenced
this pull request
Jul 27, 2023
This is similar to what Android Studio displays Say you have an app loading several images, chances are the app will create a different process to load each images but with the same name For instance, let's say this launches 5 different processes each accounting for 20% CPU usage in the same 500ms window Before this fix, the stats would be additionned, meaning we would see one single thread with that name with 100% CPU usage. It would thus hit the high CPU usage threshold, even though, nothing is actually saturating After this fix you would see process 20% process #2 20% ... process #5 20% Worth noting that a more ideal fix would have been to store processes by ids, but that actually makes the list of processes less readable and more difficult to compare Say every 500ms you load 5 requests, your 5 request processes would get recreated with same name but different ids, so every 500ms, 5 new processes would get added to the list. By still grouping by name, but allowing for multiple occurrences in a 500ms window, we keep only a smaller amount of processes, like Android Studio does for instance. It's also easier to compare and track with multiple iterations
Almouro
added a commit
that referenced
this pull request
Jul 27, 2023
This is similar to what Android Studio displays Say you have an app loading several images, chances are the app will create a different process to load each images but with the same name For instance, let's say this launches 5 different processes each accounting for 20% CPU usage in the same 500ms window Before this fix, the stats would be additionned, meaning we would see one single thread with that name with 100% CPU usage. It would thus hit the high CPU usage threshold, even though, nothing is actually saturating After this fix you would see process 20% process #2 20% ... process #5 20% Worth noting that a more ideal fix would have been to store processes by ids, but that actually makes the list of processes less readable and more difficult to compare Say every 500ms you load 5 requests, your 5 request processes would get recreated with same name but different ids, so every 500ms, 5 new processes would get added to the list. By still grouping by name, but allowing for multiple occurrences in a 500ms window, we keep only a smaller amount of processes, like Android Studio does for instance. It's also easier to compare and track with multiple iterations
Almouro
added a commit
that referenced
this pull request
Jul 27, 2023
This is similar to what Android Studio displays Say you have an app loading several images, chances are the app will create a different process to load each images but with the same name For instance, let's say this launches 5 different processes each accounting for 20% CPU usage in the same 500ms window Before this fix, the stats would be additionned, meaning we would see one single thread with that name with 100% CPU usage. It would thus hit the high CPU usage threshold, even though, nothing is actually saturating After this fix you would see process 20% process #2 20% ... process #5 20% Worth noting that a more ideal fix would have been to store processes by ids, but that actually makes the list of processes less readable and more difficult to compare Say every 500ms you load 5 requests, your 5 request processes would get recreated with same name but different ids, so every 500ms, 5 new processes would get added to the list. By still grouping by name, but allowing for multiple occurrences in a 500ms window, we keep only a smaller amount of processes, like Android Studio does for instance. It's also easier to compare and track with multiple iterations
Almouro
added a commit
that referenced
this pull request
Jul 27, 2023
This is similar to what Android Studio displays Say you have an app loading several images, chances are the app will create a different process to load each images but with the same name For instance, let's say this launches 5 different processes each accounting for 20% CPU usage in the same 500ms window Before this fix, the stats would be additionned, meaning we would see one single thread with that name with 100% CPU usage. It would thus hit the high CPU usage threshold, even though, nothing is actually saturating After this fix you would see process 20% process #2 20% ... process #5 20% Worth noting that a more ideal fix would have been to store processes by ids, but that actually makes the list of processes less readable and more difficult to compare Say every 500ms you load 5 requests, your 5 request processes would get recreated with same name but different ids, so every 500ms, 5 new processes would get added to the list. By still grouping by name, but allowing for multiple occurrences in a 500ms window, we keep only a smaller amount of processes, like Android Studio does for instance. It's also easier to compare and track with multiple iterations
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.