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.