mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
14 lines
546 B
JavaScript
14 lines
546 B
JavaScript
'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,
|
|
(value) => [value.paths, value.bookmarks]
|
|
)
|
|
|
|
module.exports = contentTracing
|