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

Unified Diff: runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart

Issue 2942493002: Removed unnecessary string concatenations (Closed)
Patch Set: Created 3 years, 6 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/cpu_profile/virtual_tree.dart
diff --git a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
index df855d4e31243cabc32535fe8b2496e08c147785..77e1a724f7f84056aa895f76af2c7c440a108f52 100644
--- a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
+++ b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart
@@ -205,11 +205,11 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable {
HtmlElement element, M.FunctionCallTreeNode item, int depth) {
element.children[0].text =
Utils.formatSize(item.inclusiveNativeAllocations);
- element.children[0].title = 'memory allocated from resulting calls: ' +
+ element.children[0].title = 'memory allocated from resulting calls: '
'${item.inclusiveNativeAllocations}B';
element.children[1].text =
Utils.formatSize(item.exclusiveNativeAllocations);
- element.children[1].title = 'memory allocated during execution: ' +
+ element.children[1].title = 'memory allocated during execution: '
'${item.exclusiveNativeAllocations}B';
_updateLines(element.children[2].children, depth);
if (item.children.isNotEmpty) {
@@ -248,11 +248,11 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable {
HtmlElement element, M.CodeCallTreeNode item, int depth) {
element.children[0].text =
Utils.formatSize(item.inclusiveNativeAllocations);
- element.children[0].title = 'memory allocated from resulting calls: ' +
+ element.children[0].title = 'memory allocated from resulting calls: '
'${item.inclusiveNativeAllocations}B';
element.children[1].text =
Utils.formatSize(item.exclusiveNativeAllocations);
- element.children[1].title = 'memory allocated during execution: ' +
+ element.children[1].title = 'memory allocated during execution: '
'${item.exclusiveNativeAllocations}B';
_updateLines(element.children[2].children, depth);
if (item.children.isNotEmpty) {

Powered by Google App Engine
This is Rietveld 408576698