* Enables or disables GPU timing for performance metrics. * GPU timing requires the 'timestamp-query' WebGPU feature. * * @param enabled - Whether to enable GPU timing
(enabled: boolean)
| 1658 | * @param enabled - Whether to enable GPU timing |
| 1659 | */ |
| 1660 | setGPUTiming(enabled: boolean): void { |
| 1661 | if (this.isDisposed) { |
| 1662 | return; // Silent no-op for disposed charts |
| 1663 | } |
| 1664 | |
| 1665 | this.sendMessage({ |
| 1666 | type: 'setGPUTiming', |
| 1667 | chartId: this.chartId, |
| 1668 | enabled, |
| 1669 | }); |
| 1670 | } |
| 1671 | |
| 1672 | // ============================================================================= |
| 1673 | // Worker Communication |
nothing calls this directly
no test coverage detected