-
Notifications
You must be signed in to change notification settings - Fork 338
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
Keep mapping of thread ids to thread names up to date #3603
Keep mapping of thread ids to thread names up to date #3603
Conversation
if (name.contains('.ui')) { | ||
uiThreadId = event.threadId; | ||
} | ||
if (isInitialUpdate) { |
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.
we should also check if we are connected to a flutter app (either offline or online). See an example of the below check here:
devtools/packages/devtools_app/lib/src/performance/performance_screen.dart
Lines 151 to 153 in a19d96f
if (isOfflineFlutterApp || | |
(!offlineController.offlineMode.value && | |
serviceManager.connectedApp.isFlutterAppNow)) |
final isOfflineFlutterApp = offlineController.offlineMode.value &&
offlinePerformanceData != null &&
offlinePerformanceData.frames.isNotEmpty;
if (isInitialUpdate && (isOfflineFlutterApp ||
(!offlineController.offlineMode.value &&
serviceManager.connectedApp.isFlutterAppNow))
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.
Store this condition in a variable and use it everywhere that isInitialUpdate
is used currently
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.
Done
Also, make sure you clear |
Thanks for reviewing this PR. |
This change updates the map of known threads each time new timeline data is loaded. The timeline lanes of isolates that did not exist when the first batch of timeline data was loaded were previously labeled `Unknown`. Now they have the same labeling as other isolates. Fixes flutter#1881
42d105f
to
3f28026
Compare
This change updates the map of known threads each time new
timeline data is loaded.
The timeline lanes of threads that did not exist when the first batch of
timeline data was loaded were previously labeled
Unknown
. Nowthey have the same labeling as other threads.
Fixes #1881