Tracing 对象
【Tracing object】
Tracing 对象用于启用或禁用一组类别的追踪。实例是通过 trace_events.createTracing() 方法创建的。
【The Tracing object is used to enable or disable tracing for sets of
categories. Instances are created using the trace_events.createTracing()
method.】
创建时,Tracing 对象是禁用的。调用 tracing.enable() 方法会将类别添加到已启用的跟踪事件类别集合中。调用 tracing.disable() 将会从已启用的跟踪事件类别集合中移除这些类别。
【When created, the Tracing object is disabled. Calling the
tracing.enable() method adds the categories to the set of enabled trace event
categories. Calling tracing.disable() will remove the categories from the
set of enabled trace event categories.】