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

Unified Diff: runtime/observatory/lib/src/elements/function_view.dart

Issue 2326483005: Shrink AOT snapshot size and memory usage. (Closed)
Patch Set: . Created 4 years, 3 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/observatory/lib/src/elements/function_view.dart
diff --git a/runtime/observatory/lib/src/elements/function_view.dart b/runtime/observatory/lib/src/elements/function_view.dart
index a0f3111ec13406d030f1d29a44d7888a5399da94..4ff1ee21875980f0a4ced84d3206551fadc3e24e 100644
--- a/runtime/observatory/lib/src/elements/function_view.dart
+++ b/runtime/observatory/lib/src/elements/function_view.dart
@@ -273,20 +273,31 @@ class FunctionViewElement extends HtmlElement implements Renderable {
]
);
}
+ members.add(
+ new DivElement()
+ ..classes = ['memberItem']
+ ..text = ' ');
+
+ if (_function.icDataArray != null) {
+ members.add(
+ new DivElement()
+ ..classes = ['memberItem']
+ ..children = [
+ new DivElement()
+ ..classes = ['memberName']
+ ..text = 'ic data array',
+ new DivElement()
+ ..classes = ['memberName']
+ ..children = [
+ new InstanceRefElement(_isolate, _function.icDataArray,
+ _instances, queue: _r.queue)
+ ]
+ ]
+ );
+ }
+
members.addAll([
new DivElement()..classes = ['memberItem']
- ..text = ' ',
- new DivElement()..classes = ['memberItem']
- ..children = [
- new DivElement()..classes = ['memberName']
- ..text = 'ic data array',
- new DivElement()..classes = ['memberName']
- ..children = [
- new InstanceRefElement(_isolate, _function.icDataArray,
- _instances, queue: _r.queue)
- ]
- ],
- new DivElement()..classes = ['memberItem']
..children = [
new DivElement()..classes = ['memberName']
..text = 'deoptimizations',

Powered by Google App Engine
This is Rietveld 408576698