Create new SF objects for legacy parser.

Includes handling for duplicate layer ids.
HierarchyTreeBuilderSf creates hierarchy tree, adds computed properties and rects to layers.

Bug: b/311643292
Test: npm run test:unit:ci - SF data object generation from real trace to be tested in subsequent CL, once abstract parser function `getEntry` switched over to new data type.

Change-Id: Ia859a1f9163084ec83b9da637d6b797585fc7601
3 files changed