@itwin/frontend-devtools
Version:
Debug menu and supporting UI widgets
31 lines • 1.68 kB
TypeScript
/** @packageDocumentation
* @module Widgets
*/
/** Breaks down the GPU memory allocated to tiles into categories displayed in two panes.
* The left-hand pane obtains its information from [TileAdmin]($frontend), displaying the number of selected and unselected tiles that are consuming graphics memory along with the amount of memory consumed.
* The right-hand pane computes its information from the set of all [TileTree]($frontend)s, broken down into groups:
* - "Selected" - tiles that have been selected for display in at least one viewport.
* - "Ancestors" - tiles not selected for display, but have descendents selected for display.
* - "Descendants" - tiles not selected for display, but have ancestors selected for display.
* - "Orphans" - tiles not selected for display that have no ancestors nor descendants selected for display.
* - "Total" - totals of the above categories.
*
* Each row of data shows `(number of tiles) Group Name: amount of memory consumed by group`.
* The number of tiles in each group includes only those tiles that are consuming a non-zero amount of GPU memory.
* The widget includes a checkbox to toggle tracking and display of these statistics.
* @beta
*/
export declare class TileMemoryBreakdown {
private readonly _tracer;
private readonly _div;
private _curIntervalId?;
private readonly _statsElements;
private readonly _totalsElements;
/** Construct a new breakdown widget as a child of the specified parent element. */
constructor(parent: HTMLElement);
[Symbol.dispose](): void;
private toggle;
private clearInterval;
private update;
}
//# sourceMappingURL=TileMemoryBreakdown.d.ts.map