flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

Add openFrame vm service listener #1290

Open B3rn475 opened 7 years ago

B3rn475 commented 7 years ago

The plugin already support support the openSourceLocation service. Adding another service called 'openFrame' observatory can ask the editor to show a specific frame. An example is the dominator tree, were the bottleneck is a frame itself and right now cannot be analyzed.

Update: During heap analysis we can potentially encounter objects that are kept alive just by Stack Frames. In this case we do not have a source location associated with the frame, so we cannot send the use back to the editor. A possible solution would be to send the user to the debugger and select the blamed stack frame.

It is probably not useful for Flutter, where the stack clears every frame, but for normal Dart VM applications or background isolates can helpful.

devoncarew commented 7 years ago

@B3rn475, can you provide a bit more detail here as to what this would do?

B3rn475 commented 7 years ago

Updated the description