 cfd230d7f1
			
		
	
	
	
	
	cfd230d7f1* docs: remove implicit 'any' and 'Object' types from the docs * docs: more docs improvements, remove all remaining empty interfaces * chore: update tests for better types
		
			
				
	
	
	
	
		
			2.6 KiB
			
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.6 KiB
			
		
	
	
	
	
	
	
	
TraceConfig Object
- recording_modeString (optional) - Can be- record-until-full,- record-continuously,- record-as-much-as-possibleor- trace-to-console. Defaults to- record-until-full.
- trace_buffer_size_in_kbnumber (optional) - maximum size of the trace recording buffer in kilobytes. Defaults to 100MB.
- trace_buffer_size_in_eventsnumber (optional) - maximum size of the trace recording buffer in events.
- enable_argument_filterboolean (optional) - if true, filter event data according to a whitelist of events that have been manually vetted to not include any PII. See the implementation in Chromium for specifics.
- included_categoriesString[] (optional) - a list of tracing categories to include. Can include glob-like patterns using- *at the end of the category name. See tracing categories for the list of categories.
- excluded_categoriesString[] (optional) - a list of tracing categories to exclude. Can include glob-like patterns using- *at the end of the category name. See tracing categories for the list of categories.
- included_process_idsnumber[] (optional) - a list of process IDs to include in the trace. If not specified, trace all processes.
- histogram_namesString[] (optional) - a list of histogram names to report with the trace.
- memory_dump_configRecord<String, any> (optional) - if the- disabled-by-default-memory-infracategory is enabled, this contains optional additional configuration for data collection. See the Chromium memory-infra docs for more information.
An example TraceConfig that roughly matches what Chrome DevTools records:
{
  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: [ '*' ]
}