2018-09-22 12:28:50 +00:00
|
|
|
'use strict'
|
2019-01-30 20:39:55 +00:00
|
|
|
const { deprecate } = require('electron')
|
2019-03-18 19:37:06 +00:00
|
|
|
const contentTracing = process.electronBinding('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-26 02:25:25 +00:00
|
|
|
contentTracing.getTraceBufferUsage = deprecate.promisifyMultiArg(
|
2019-03-07 20:56:02 +00:00
|
|
|
contentTracing.getTraceBufferUsage
|
|
|
|
// convertPromiseValue: Temporarily disabled until it's used
|
|
|
|
/* (value) => [value.paths, value.bookmarks] */
|
2019-02-26 02:25:25 +00:00
|
|
|
)
|
2019-01-30 20:39:55 +00:00
|
|
|
|
|
|
|
module.exports = contentTracing
|