TraceConfig Object
recording_mode
string (optional) -Can be可以是record-until-full
,record-continuously
,record-as-much-as-possible
ortrace-to-console
.record-until-full
、record-continuously
、record-as-much-as-possible
或trace-to-console
。Defaults to默认为record-until-full
.record-until-full
。trace_buffer_size_in_kb
number (optional) -maximum size of the trace recording buffer in kilobytes. Defaults to 100MB.跟踪记录缓冲区的最大大小(KB)。默认为100MB。trace_buffer_size_in_events
number (optional) -maximum size of the trace recording buffer in events.事件中跟踪记录缓冲区的最大大小。enable_argument_filter
boolean (optional) -if true, filter event data according to a specific list of events that have been manually vetted to not include any PII.如果为true
,则根据经过手动审查的不包括任何PII的特定事件列表筛选事件数据。See the implementation in Chromium for specifics.有关详细信息,请参阅Chromium中的实现。included_categories
string[] (optional) -a list of tracing categories to include.要包括的跟踪类别的列表。Can include glob-like patterns using可以在类别名称的末尾使用*
at the end of the category name.*
包含类似glob的模式。See tracing categories for the list of categories.有关类别列表,请参阅跟踪类别。excluded_categories
string[] (optional) -a list of tracing categories to exclude.要排除的跟踪类别的列表。Can include glob-like patterns using可以在类别名称的末尾使用*
at the end of the category name.*
包含类似glob的模式。See tracing categories for the list of categories.有关类别列表,请参阅跟踪类别。included_process_ids
number (optional) -a list of process IDs to include in the trace.要包括在跟踪中的进程ID的列表。If not specified, trace all processes.如果未指定,请跟踪所有进程。histogram_names
string[] (optional) -a list of histogram names to report with the trace.要与跟踪一起报告的直方图名称列表。memory_dump_config
Record<string, any> (optional) -if the如果启用了disabled-by-default-memory-infra
category is enabled, this contains optional additional configuration for data collection.disabled-by-default-memory-infra
类别,则包含用于数据收集的可选附加配置。See the Chromium memory-infra docs for more information.有关更多信息,请参阅Chromium内存基础文档。
An example TraceConfig that roughly matches what Chrome DevTools records:示例TraceConfig大致匹配Chrome DevTools的记录:
{
recording_mode: 'record-until-full',
included_categories: [
'devtools.timeline',
'disabled-by-default-devtools.timeline',
'disabled-by-default-devtools.timeline.frame',
'disabled-by-default-devtools.timeline.stack',
'v8.execute',
'blink.console',
'blink.user_timing',
'latencyInfo',
'disabled-by-default-v8.cpu_profiler',
'disabled-by-default-v8.cpu_profiler.hires'
],
excluded_categories: ['*']
}