Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/heap_map.dart

Issue 249553003: Connect heap map to instance view. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/lib/src/elements/heap_map.dart
===================================================================
--- runtime/bin/vmservice/client/lib/src/elements/heap_map.dart (revision 35144)
+++ runtime/bin/vmservice/client/lib/src/elements/heap_map.dart (working copy)
@@ -66,6 +66,7 @@
super.enteredView();
_fragmentationCanvas = shadowRoot.querySelector("#fragmentation");
_fragmentationCanvas.onMouseMove.listen(_handleMouseMove);
+ _fragmentationCanvas.onMouseDown.listen(_handleClick);
}
// Encode color as single integer, to enable using it as a map key.
@@ -128,6 +129,11 @@
var className = _classNameAt(event.offset);
status = (className == '') ? '-' : '$className $addressString';
}
+
+ void _handleClick(MouseEvent event) {
+ var address = _addressAt(event.offset).toRadixString(16);
+ window.location.hash = "/${fragmentation.isolate.link}/address/$address";
+ }
void _updateFragmentationData() {
if (fragmentation == null || _fragmentationCanvas == null) {
« no previous file with comments | « no previous file | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698