Add some changes to TraceAnalyzer to improve analysis
am: 4b1ad93f7b

Change-Id: Idaf955f1bfa6c2f646cf2c29c85ebb497dcdd086