kvision / pl.treksoft.kvision.electron / ContentTracing

ContentTracing

external interface ContentTracing : EventEmitter

Functions

captureMonitoringSnapshot

abstract fun captureMonitoringSnapshot(resultFilePath: String, callback: (resultFilePath: String) -> Unit): Unit

getCategories

abstract fun getCategories(callback: (categories: Array<String>) -> Unit): Unit

getTraceBufferUsage

abstract fun getTraceBufferUsage(callback: (value: Number, percentage: Number) -> Unit): Unit

startMonitoring

abstract fun startMonitoring(options: StartMonitoringOptions, callback: Function<*>): Unit

startRecording

abstract fun startRecording(options: StartRecordingOptions, callback: Function<*>): Unit

stopMonitoring

abstract fun stopMonitoring(callback: Function<*>): Unit

stopRecording

abstract fun stopRecording(resultFilePath: String, callback: (resultFilePath: String) -> Unit): Unit

Inherited Functions

addListener

open fun addListener(event: String, listener: Function<*>): EventEmitter

emit

open fun emit(event: String, vararg args: Any): Boolean

eventNames

open fun eventNames(): Array<String>

getMaxListeners

open fun getMaxListeners(): Number

listenerCount

open fun listenerCount(type: String): Number

listeners

open fun listeners(event: String): Array<Function<*>>

on

open fun on(event: String, listener: Function<*>): EventEmitter

once

open fun once(event: String, listener: Function<*>): EventEmitter

prependListener

open fun prependListener(event: String, listener: Function<*>): EventEmitter

prependOnceListener

open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter

removeAllListeners

open fun removeAllListeners(event: String? = definedExternally): EventEmitter

removeListener

open fun removeListener(event: String, listener: Function<*>): EventEmitter

setMaxListeners

open fun setMaxListeners(n: Number): EventEmitter

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.