@itwin/frontend-devtools
Version:
Debug menu and supporting UI widgets
28 lines • 914 B
TypeScript
import { Viewport } from "@itwin/core-frontend";
/** @internal */
export declare function formatMemory(numBytes: number): string;
/** Displays GPU memory allocated to tile trees - either all tile trees in the system, or only those associated with a specific Viewport.
* @beta
*/
export declare class MemoryTracker {
private readonly _stats;
private readonly _vp;
private readonly _div;
private _curIntervalId?;
private _memIndex;
private readonly _totalElem;
private readonly _totalTreesElem;
private readonly _purgeButton;
private readonly _textures;
private readonly _buffers;
constructor(parent: HTMLElement, vp: Viewport);
[Symbol.dispose](): void;
private addSelector;
private addPurgeButton;
private addStatistics;
private clearInterval;
private change;
private update;
private purge;
}
//# sourceMappingURL=MemoryTracker.d.ts.map