2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
2019-01-30 20:39:55 +00:00
|
|
|
const { deprecate } = require('electron')
|
|
|
|
const contentTracing = process.atomBinding('content_tracing')
|
2018-09-22 12:28:50 +00:00
|
|
|
|
2019-01-30 20:39:55 +00:00
|
|
|
contentTracing.getCategories = deprecate.promisify(contentTracing.getCategories)
|
2019-01-31 02:53:55 +00:00
|
|
|
contentTracing.startRecording = deprecate.promisify(contentTracing.startRecording)
|
|
|
|
contentTracing.stopRecording = deprecate.promisify(contentTracing.stopRecording)
|
2019-02-13 21:24:57 +00:00
|
|
|
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(contentTracing.getTraceBufferUsage)
|
2019-01-30 20:39:55 +00:00
|
|
|
|
|
|
|
module.exports = contentTracing
|