You use the same approach to building a trace tree model as you do to building a call graph model, except that you build a model of type TraceTree instead of type Profiling.
For example:
TraceTree ltct_treemodel ltct_treemodel = CREATE TraceTree ltct_treeModel.SetTraceFileName(is_fileName ) ltct_treeModel.BuildModel(this, 'ue_progress', 1)
For more about using BuildModel, see “Using the BuildModel function to build a call graph model”.