-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Improve OSS systrace #34252
Improve OSS systrace #34252
Conversation
Base commit: a67360b |
public final class SystraceMessage { | ||
|
||
private static final Builder NOOP_BUILDER = new NoopBuilder(); | ||
public static Boolean INCLUDE_ARGS = false; |
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.
Adding arguments to the section name makes grouping similar events a lot harder so by default I disable it. I don't really see how else args are useful for systrace in Android Studio. How is that used internally at facebook?
Base commit: a67360b |
@dmitryrykun has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@@ -24,6 +24,7 @@ PROGUARD_ANNOTATIONS_VERSION=1.19.0 | |||
ROBOLECTRIC_VERSION=4.4 | |||
SO_LOADER_VERSION=0.10.4 | |||
SWIPEREFRESH_LAYOUT_VERSION=1.0.0 | |||
ANDROIDX_TRACING_VERSION=1.1.0 |
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.
nit: can we keep this sorted?
This pull request was successfully merged by @janicduplessis in ccbfdd7. When will my fix make it into a release? | Upcoming Releases |
Summary: Implements most of systrace using androidx.tracing, this makes it usable using Android Studio profiler systrace. ## Changelog [Android] [Added] - Improve OSS systrace Pull Request resolved: facebook#34252 Test Plan: Run a systrace in Android Studio for RN Tester and make sure RN specific sections are there. <img width="1263" alt="image" src="https://user-images.githubusercontent.com/2677334/180593493-fc087b4a-2253-43e1-b246-bed3e7bba7ac.png"> Reviewed By: NickGerleman Differential Revision: D38116890 Pulled By: dmitryrykun fbshipit-source-id: 744bedbf9ad4004488340a5b4e93d936d9a1e582
Summary: Implements most of systrace using androidx.tracing, this makes it usable using Android Studio profiler systrace. ## Changelog [Android] [Added] - Improve OSS systrace Pull Request resolved: facebook#34252 Test Plan: Run a systrace in Android Studio for RN Tester and make sure RN specific sections are there. <img width="1263" alt="image" src="https://user-images.githubusercontent.com/2677334/180593493-fc087b4a-2253-43e1-b246-bed3e7bba7ac.png"> Reviewed By: NickGerleman Differential Revision: D38116890 Pulled By: dmitryrykun fbshipit-source-id: 744bedbf9ad4004488340a5b4e93d936d9a1e582
Summary
Implements most of systrace using androidx.tracing, this makes it usable using Android Studio profiler systrace.
Changelog
[Android] [Added] - Improve OSS systrace
Test Plan
Run a systrace in Android Studio for RN Tester and make sure RN specific sections are there.