electron/lib/browser/api/content-tracing.js

14 lines
618 B
JavaScript

'use strict'
const { deprecate } = require('electron')
const contentTracing = process.electronBinding('content_tracing')
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(
contentTracing.getTraceBufferUsage
// convertPromiseValue: Temporarily disabled until it's used
/* (value) => [value.paths, value.bookmarks] */
)
module.exports = contentTracing