TraceCategoriesAndOptions 对象
categoryFilter
string - 用于控制应跟踪哪些类别组的过滤器。过滤器可以带有可选的 '-' 前缀,以排除包含匹配类别的类别组。在同一列表中同时包含和排除类别模式是不支持的。示例:test_MyTest*
, test_MyTest*,test_OtherStuff
, -excluded_category1,-excluded_category2
。
traceOptions
string - 控制启用哪种跟踪,它是以下字符串的逗号分隔序列:record-until-full
, record-continuously
, trace-to-console
, enable-sampling
, enable-systrace
,例如 'record-until-full,enable-sampling'
。前 3 个选项是跟踪记录模式,因此互斥。如果在 traceOptions
字符串中出现多个跟踪记录模式,则最后一个优先。如果没有指定跟踪记录模式,则记录模式为 record-until-full
。在应用从 traceOptions
解析的选项之前,跟踪选项将首先重置为默认选项 (record_mode
设置为 record-until-full
,enable_sampling
和 enable_systrace
设置为 false
)。