TraceCategoriesAndOptions Object
优质
小牛编辑
123浏览
2023-12-01
- 字符串
categoryFilter
是一个用来控制哪些类别组需要被跟踪的过滤器。 过滤器有一个可选的-
前缀来排除被匹配到的类别组。 在同一个列表中,不支持 包含一个匹配模式,又排除这个匹配模式。 示例: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
。 跟踪选项将首先重置为默认选项(record_mode
设置 为record-until-full
,enable_sampling
和enable_systrace
设置为false
)在从traceOptions
解析选项之前。
categoryFilter
String – is a filter to control what category groups
should be traced. A filter can have an optional-
prefix to exclude
category groups that contain a matching category. Having both included
and excluded category patterns in the same list is not supported. Examples:test_MyTest*
,test_MyTest*,test_OtherStuff
,-excluded_category1,-excluded_category2
.traceOptions
String - Controls what kind of tracing is enabled,
it is a comma-delimited sequence of the following strings:record-until-full
,record-continuously
,trace-to-console
,enable-sampling
,enable-systrace
,
e.g.'record-until-full,enable-sampling'
.
The first 3 options are trace recording modes and hence mutually exclusive.
If more than one trace recording modes appear in thetraceOptions
string,
the last one takes precedence. If none of the trace recording modes are
specified, recording mode isrecord-until-full
.
The trace option will first be reset to the default option (record_mode
set
torecord-until-full
,enable_sampling
andenable_systrace
set tofalse
) before options parsed fromtraceOptions
are applied on it.