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

11 lines
497 B
JavaScript
Raw Normal View History

'use strict'
const { deprecate } = require('electron')
const contentTracing = process.atomBinding('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)
module.exports = contentTracing