mirror of
https://github.com/electron/electron.git
synced 2026-01-30 01:38:49 -05:00
* feat: promsify contentTracing.getTraceBufferUsage() * deprecate getTraceBufferUsage * address feedback from review * properly deprecate
11 lines
497 B
JavaScript
11 lines
497 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)
|
|
|
|
module.exports = contentTracing
|