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

Side by Side Diff: runtime/observatory/lib/src/app/application.dart

Issue 2771293003: Resubmission of native memory allocation info surfacing in Observatory. Fixed crashing tests and st… (Closed)
Patch Set: Added page to Observatory to display native memory allocation information. Created 3 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 unified diff | Download patch
« no previous file with comments | « runtime/observatory/lib/elements.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of app; 5 part of app;
6 6
7 /// The observatory application. Instances of this are created and owned 7 /// The observatory application. Instances of this are created and owned
8 /// by the observatory_application custom element. 8 /// by the observatory_application custom element.
9 class ObservatoryApplication { 9 class ObservatoryApplication {
10 static ObservatoryApplication app; 10 static ObservatoryApplication app;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 assert(event.kind != ServiceEvent.kNone); 146 assert(event.kind != ServiceEvent.kNone);
147 M.Event e = createEventFromServiceEvent(event); 147 M.Event e = createEventFromServiceEvent(event);
148 if (e != null) { 148 if (e != null) {
149 events.add(e); 149 events.add(e);
150 } 150 }
151 } 151 }
152 152
153 void _registerPages() { 153 void _registerPages() {
154 _pageRegistry.add(new VMPage(this)); 154 _pageRegistry.add(new VMPage(this));
155 _pageRegistry.add(new FlagsPage(this)); 155 _pageRegistry.add(new FlagsPage(this));
156 _pageRegistry.add(new NativeMemoryProfilerPage(this));
156 _pageRegistry.add(new InspectPage(this)); 157 _pageRegistry.add(new InspectPage(this));
157 _pageRegistry.add(new ClassTreePage(this)); 158 _pageRegistry.add(new ClassTreePage(this));
158 _pageRegistry.add(new DebuggerPage(this)); 159 _pageRegistry.add(new DebuggerPage(this));
159 _pageRegistry.add(new ObjectStorePage(this)); 160 _pageRegistry.add(new ObjectStorePage(this));
160 _pageRegistry.add(new CpuProfilerPage(this)); 161 _pageRegistry.add(new CpuProfilerPage(this));
161 _pageRegistry.add(new TableCpuProfilerPage(this)); 162 _pageRegistry.add(new TableCpuProfilerPage(this));
162 _pageRegistry.add(new AllocationProfilerPage(this)); 163 _pageRegistry.add(new AllocationProfilerPage(this));
163 _pageRegistry.add(new HeapMapPage(this)); 164 _pageRegistry.add(new HeapMapPage(this));
164 _pageRegistry.add(new HeapSnapshotPage(this)); 165 _pageRegistry.add(new HeapSnapshotPage(this));
165 _pageRegistry.add(new VMConnectPage(this)); 166 _pageRegistry.add(new VMConnectPage(this));
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 } 281 }
281 282
282 // TODO(turnidge): Report this failure via analytics. 283 // TODO(turnidge): Report this failure via analytics.
283 Logger.root.warning('Caught exception: ${e}\n${st}'); 284 Logger.root.warning('Caught exception: ${e}\n${st}');
284 notifications.add(new ExceptionNotification(e, stacktrace: st)); 285 notifications.add(new ExceptionNotification(e, stacktrace: st));
285 } 286 }
286 287
287 // This map keeps track of which curly-blocks have been expanded by the user. 288 // This map keeps track of which curly-blocks have been expanded by the user.
288 Map<String, bool> expansions = {}; 289 Map<String, bool> expansions = {};
289 } 290 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/elements.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698