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

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

Issue 237683004: Disable applyAuthorStyles (Closed) Base URL: https://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
Index: runtime/bin/vmservice/client/lib/src/elements/heap_map.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/heap_map.dart b/runtime/bin/vmservice/client/lib/src/elements/heap_map.dart
index 5be74c6491ad09f61fe41b5fbb24d13e63e5511d..a4d7f515845643092989784c2e86635c8a4617ef 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/heap_map.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/heap_map.dart
@@ -78,7 +78,7 @@ class HeapMapElement extends ObservatoryElement {
}
void _addClass(int classId, String name, Iterable<int> color) {
- _classIdToName[classId] = name;
+ _classIdToName[classId] = name.split('@')[0];
_classIdToColor[classId] = color;
_colorToClassId[_packColor(color)] = classId;
}
@@ -91,7 +91,7 @@ class HeapMapElement extends ObservatoryElement {
}
var classId = int.parse(member['id'].split('/').last);
var color = _classIdToRGBA(classId);
- _addClass(classId, member['user_name'], color);
+ _addClass(classId, member['name'], color);
}
_addClass(freeClassId, 'Free', _freeColor);
_addClass(0, '', _pageSeparationColor);

Powered by Google App Engine
This is Rietveld 408576698