Skip to main content

TraceCategoriesAndOptions Object

  • categoryFilter string - 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.例如: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'. record-until-fullrecord-continuouslytrace-to-consoleenable-samplingenable-systrace,例如:'record-until-full,enable-sampling'The first 3 options are trace recording modes and hence mutually exclusive. 前3个选项是跟踪记录模式,因此相互排斥。If more than one trace recording modes appear in the traceOptions string, the last one takes precedence. 如果traceOptions字符串中出现多个跟踪录制模式,则最后一个模式优先。If none of the trace recording modes are specified, recording mode is record-until-full. 如果没有指定任何跟踪记录模式,则记录模式record-until-fullThe trace option will first be reset to the default option (record_mode set to record-until-full, enable_sampling and enable_systrace set to false) before options parsed from traceOptions are applied on it.trace选项将首先重置为默认选项(record_mode设置为record-until-fullenable_samplingenable_systrace设置为false),然后再应用traceOptions解析的选项。