TimestampLogger¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/compute/TimestampLogger.ts for the most up-to-date information.
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.