From 80ea5541011f00fbc85eb356f6047aa57b961d54 Mon Sep 17 00:00:00 2001 From: Shashwat Date: Wed, 21 Jul 2021 12:56:20 +0000 Subject: [PATCH] Fix [Object object] appearing on surfaceflinger trace When traversing tree of the transformObject, _transform function with some fields did not have a key and instead had a terminal class. This has been updated to display the key string. Bug: 190176285 Test: Using a pb file giving a object object previously and clicking show diff on all, see that no object object appears now. Change-Id: I7fa3db3a631209e1d5e1f771a93d7b3e57694309 --- tools/winscope/src/transform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winscope/src/transform.js b/tools/winscope/src/transform.js index 6acc4d85e..2af0955bb 100644 --- a/tools/winscope/src/transform.js +++ b/tools/winscope/src/transform.js @@ -309,7 +309,7 @@ class ObjectTransformer { transformedObj = { kind: '', - name: name + ': ' + child.name, + name: (isTerminal(name) ? compareWithName : name) + ': ' + child.name, stableId, children: child.children, combined: true,