TimestampLogger¶
Overview¶
Assists in logging out timestamps for WebGPU profiling.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class TimestampLogger¶
Constructor¶
new TimestampLogger( deviceContext : DeviceContext | null, capacity : number )¶
Instance Methods¶
getGPUComputePassTimestampWrites( name : string ) : GPUComputePassTimestampWrites | null¶
resolve( encoder : GPUCommandEncoder, bufferLogger : BufferLogger ) : Promise<TimestampLoggerResult | null>¶
dispose()¶
Class TimestampLoggerResult¶
Constructor¶
new TimestampLoggerResult( timestamps : number[], timestampNames : string[] )¶
Instance Methods¶
toString() : string¶
Instance Properties¶
deltas : number[]¶
(readonly)
Static Methods¶
averageTimestamps( results : TimestampLoggerResult[] ) : TimestampLoggerResult¶
Source Code¶
See the source for TimestampLogger.ts in the alpenglow repository.