Use the following APIs to start a custom UI trace while passing a string that defines the name of the trace.
APM.startUITrace(withName: "name")[LCQAPM startUITraceWithName:@"name"];// Start UI Trace
APM.startUITrace("name");// Start UI Trace
APM.startUITrace("name")APM.startUITrace("name");APM.startUITrace('trace_name');