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

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

Issue 2298563002: Removed const from classes arrays in Observatory (Closed)
Patch Set: Created 4 years, 4 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/observatory/lib/src/elements/containers/virtual_collection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/allocation_profile.dart
diff --git a/runtime/observatory/lib/src/elements/allocation_profile.dart b/runtime/observatory/lib/src/elements/allocation_profile.dart
index d56b2a02522802833bcf3bf062495cdd5366fe84..0fb63c025208cbf9c7d89f73bc252b1772be7bc8 100644
--- a/runtime/observatory/lib/src/elements/allocation_profile.dart
+++ b/runtime/observatory/lib/src/elements/allocation_profile.dart
@@ -138,7 +138,7 @@ class AllocationProfileElement extends HtmlElement implements Renderable {
..onRefresh.listen((_) => _refresh(gc: true)),
new NavRefreshElement(queue: _r.queue)
..onRefresh.listen((_) => _refresh()),
- new DivElement()..classes = const ['nav-option']
+ new DivElement()..classes = ['nav-option']
..children = [
new CheckboxInputElement()
..id = 'allocation-profile-auto-refresh'
@@ -150,7 +150,7 @@ class AllocationProfileElement extends HtmlElement implements Renderable {
],
new NavNotifyElement(_notifications, queue: _r.queue)
],
- new DivElement()..classes = const ['content-centered-big']
+ new DivElement()..classes = ['content-centered-big']
..children = [
new HeadingElement.h2()..text = 'Allocation Profile',
new HRElement()
@@ -158,65 +158,65 @@ class AllocationProfileElement extends HtmlElement implements Renderable {
];
if (_profile == null) {
children.addAll([
- new DivElement()..classes = const ['content-centered-big']
+ new DivElement()..classes = ['content-centered-big']
..children = [
new HeadingElement.h2()..text = 'Loading...'
]
]);
} else {
- final newChartHost = new DivElement()..classes = const ['host'];
- final newChartLegend = new DivElement()..classes = const ['legend'];
- final oldChartHost = new DivElement()..classes = const ['host'];
- final oldChartLegend = new DivElement()..classes = const ['legend'];
+ final newChartHost = new DivElement()..classes = ['host'];
+ final newChartLegend = new DivElement()..classes = ['legend'];
+ final oldChartHost = new DivElement()..classes = ['host'];
+ final oldChartLegend = new DivElement()..classes = ['legend'];
children.addAll([
- new DivElement()..classes = const ['content-centered-big']
+ new DivElement()..classes = ['content-centered-big']
..children = [
- new DivElement()..classes = const ['memberList']
+ new DivElement()..classes = ['memberList']
..children = [
- new DivElement()..classes = const ['memberItem']
+ new DivElement()..classes = ['memberItem']
..children = [
- new DivElement()..classes = const ['memberName']
+ new DivElement()..classes = ['memberName']
..text = 'last forced GC at',
- new DivElement()..classes = const ['memberValue']
+ new DivElement()..classes = ['memberValue']
..text = _profile.lastServiceGC == null ? '---'
: '${_profile.lastServiceGC}',
],
- new DivElement()..classes = const ['memberItem']
+ new DivElement()..classes = ['memberItem']
..children = [
- new DivElement()..classes = const ['memberName']
+ new DivElement()..classes = ['memberName']
..text = 'last accumulator reset at',
- new DivElement()..classes = const ['memberValue']
+ new DivElement()..classes = ['memberValue']
..text = _profile.lastAccumulatorReset == null ? '---'
: '${_profile.lastAccumulatorReset}',
]
],
new HRElement(),
],
- new DivElement()..classes = const ['content-centered-big']
+ new DivElement()..classes = ['content-centered-big']
..children = [
- new DivElement()..classes = const ['heap-space', 'left']
+ new DivElement()..classes = ['heap-space', 'left']
..children = [
new HeadingElement.h2()..text = 'New Generation',
new BRElement(),
- new DivElement()..classes = const ['memberList']
+ new DivElement()..classes = ['memberList']
..children = _createSpaceMembers(_profile.newSpace),
new BRElement(),
- new DivElement()..classes = const ['chart']
+ new DivElement()..classes = ['chart']
..children = [newChartLegend, newChartHost]
],
- new DivElement()..classes = const ['heap-space', 'right']
+ new DivElement()..classes = ['heap-space', 'right']
..children = [
new HeadingElement.h2()..text = 'Old Generation',
new BRElement(),
- new DivElement()..classes = const ['memberList']
+ new DivElement()..classes = ['memberList']
..children = _createSpaceMembers(_profile.oldSpace),
new BRElement(),
- new DivElement()..classes = const ['chart']
+ new DivElement()..classes = ['chart']
..children = [oldChartLegend, oldChartHost]
],
new BRElement(), new HRElement()
],
- new DivElement()..classes = const ['collection']
+ new DivElement()..classes = ['collection']
..children = [
new VirtualCollectionElement(
_createCollectionLine,
@@ -284,56 +284,56 @@ class AllocationProfileElement extends HtmlElement implements Renderable {
static Element _createCollectionLine() =>
new DivElement()
- ..classes = const ['collection-item']
+ ..classes = ['collection-item']
..children = [
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['bytes']
+ new SpanElement()..classes = ['bytes']
..text = '0B',
- new SpanElement()..classes = const ['instances']
+ new SpanElement()..classes = ['instances']
..text = '0',
- new SpanElement()..classes = const ['name']
+ new SpanElement()..classes = ['name']
];
Element _createCollectionHeader() =>
new DivElement()
..children = [
new DivElement()
- ..classes = const ['collection-item']
+ ..classes = ['collection-item']
..children = [
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = 'Accumulated',
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = 'Current',
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = '(NEW) Accumulated',
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = '(NEW) Current',
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = '(OLD) Accumulated',
- new SpanElement()..classes = const ['group']
+ new SpanElement()..classes = ['group']
..text = '(OLD) Current',
],
new DivElement()
- ..classes = const ['collection-item']
+ ..classes = ['collection-item']
..children = [
_createHeaderButton(const ['bytes'], 'Size',
_SortingField.accumulatedSize,
@@ -439,7 +439,8 @@ class AllocationProfileElement extends HtmlElement implements Renderable {
return [
new DivElement()..classes = ['memberItem']
..children = [
- new DivElement()..classes = ['memberName']..text = 'used',
+ new DivElement()..classes = ['memberName']
+ ..text = 'used',
new DivElement()..classes = ['memberValue']
..text = used
],
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/containers/virtual_collection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698