跳转到内容

ProfileRecorderPlugin

此内容尚不支持你的语言。

Defined in: app/profileRecorder.ts:151

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: app/profileRecorder.ts:156

ProfileRecorderOptions = {}

(recorder) => void

ProfileRecorderPlugin

readonly name: "profileRecorder" = 'profileRecorder'

Defined in: app/profileRecorder.ts:152

Plugin.name


readonly profileDomain: "diagnostics" = 'diagnostics'

Defined in: app/profileRecorder.ts:153

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: app/profileRecorder.ts:162

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

ProfileRecorder | null

build(app): void

Defined in: app/profileRecorder.ts:166

App

void

Plugin.build


cleanup(): void

Defined in: app/profileRecorder.ts:171

void

Plugin.cleanup