enum RecordingMode { "record-until-full", "record-continuously", "record-as-much-as-possible", "trace-to-console" }; dictionary TraceConfig { Recordingmode recording_mode; unsigned long trace_buffer_size_in_kb; unsigned long trace_buffer_size_in_events; boolean enable_argument_filter; sequence included_categories; sequence excluded_categories; sequence included_process_ids; sequence histogram_names; object memory_dump_config; }; dictionary TraceCategoriesAndOptions { DOMString categoryFilter; DOMString traceOptions; }; interface ContentTracing { Promise> getCategories(); Promise startRecording(TraceConfig config); Promise startRecording(TraceCategoriesAndOptions categoriesAndOptions); Promise stopRecording(optional DOMString resultFilePath); Promise getTraceBufferUsage(); };