Skip to content

ProfileRecorderPlugin

Defined in: sdk/src/app/profileRecorder.ts:165

Installs a ProfileRecorder and hands it to the game. Recording is NOT started: a shipped build pays for the instrumentation only from the moment something asks it to.

new ProfileRecorderPlugin(options_?, onReady_?): ProfileRecorderPlugin

Defined in: sdk/src/app/profileRecorder.ts:170

ProfileRecorderOptions = {}

(recorder) => void

ProfileRecorderPlugin

readonly name: "profileRecorder" = 'profileRecorder'

Defined in: sdk/src/app/profileRecorder.ts:166

Plugin.name


readonly profileDomain: "diagnostics" = 'diagnostics'

Defined in: sdk/src/app/profileRecorder.ts:167

Cost domain the profiler files this plugin’s systems under. Defaults to name; declare it where the two differ, as camera producing render.

Plugin.profileDomain

get recorder(): ProfileRecorder | null

Defined in: sdk/src/app/profileRecorder.ts:176

The recorder, once the plugin has been built into an App.

ProfileRecorder | null

build(app): void

Defined in: sdk/src/app/profileRecorder.ts:180

App

void

Plugin.build


cleanup(): void

Defined in: sdk/src/app/profileRecorder.ts:185

Releases acquired resources on quit or a failed build; must tolerate a partially completed build.

void

Plugin.cleanup