Skip to main content

TraceConfig 객체

  • recording_mode string (선택사항) - record-until-full, record-continuously, record-as-much-as-possible, trace-to-console 중 하나로 설정할 수 있다. 기본값은 record-until-full이다.
  • trace_buffer_size_in_kb number (선택사항) - 트레이스 기록 버퍼의 최대 크기를 킬로바이트 단위로 지정한다. 기본값은 100MB이다.
  • trace_buffer_size_in_events number (선택사항) - 트레이스 기록 버퍼의 최대 크기를 이벤트 단위로 지정한다.
  • enable_argument_filter boolean (선택사항) - true로 설정하면, PII(개인 식별 정보)를 포함하지 않도록 수동으로 검증된 특정 이벤트 목록에 따라 이벤트 데이터를 필터링한다. 자세한 내용은 Chromium의 구현을 참고한다.
  • included_categories string[] (선택사항) - 포함할 트레이싱 카테고리 목록이다. 카테고리 이름 끝에 *를 사용해 glob-like 패턴을 포함할 수 있다. 카테고리 목록은 tracing categories에서 확인할 수 있다.
  • excluded_categories string[] (선택사항) - 제외할 트레이싱 카테고리 목록이다. 카테고리 이름 끝에 *를 사용해 glob-like 패턴을 포함할 수 있다. 카테고리 목록은 tracing categories에서 확인할 수 있다.
  • included_process_ids number[] (선택사항) - 트레이스에 포함할 프로세스 ID 목록이다. 지정하지 않으면 모든 프로세스를 트레이스한다.
  • histogram_names string[] (선택사항) - 트레이스와 함께 보고할 histogram 이름 목록이다.
  • memory_dump_config Record<string, any> (선택사항) - disabled-by-default-memory-infra 카테고리가 활성화된 경우, 데이터 수집을 위한 추가 설정을 포함한다. 자세한 내용은 Chromium memory-infra 문서를 참고한다.

Chrome DevTools에서 기록하는 내용과 대략 일치하는 TraceConfig 예제:

{
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: ['*']
}