跳转到内容

ProfileRecorder

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

Defined in: app/profileRecorder.ts:54

Records frames into a capture the game can hand anywhere. Measures nothing of its own, so a capture cannot disagree with the profiler panel; and chooses no destination — take() returns an object, the engine opens no socket.

new ProfileRecorder(app, options?): ProfileRecorder

Defined in: app/profileRecorder.ts:62

App

ProfileRecorderOptions = {}

ProfileRecorder

get frameCount(): number

Defined in: app/profileRecorder.ts:71

number


get recording(): boolean

Defined in: app/profileRecorder.ts:67

boolean

clear(): void

Defined in: app/profileRecorder.ts:100

Throw away what has been recorded, keeping the recorder running.

void


start(): void

Defined in: app/profileRecorder.ts:80

Begin recording, turning on the instrumentation it reads — both sides of it, since the C++ scopes are behind their own switch and a capture missing them looks like an engine that costs nothing rather than one not measured.

void


stop(): void

Defined in: app/profileRecorder.ts:91

Stop recording and put the engine’s own profiling back down.

void


take(): ProfileCapture

Defined in: app/profileRecorder.ts:108

The capture so far. Recording may continue; the frames are copied out, so the returned document does not change under a reader.

ProfileCapture