()
| 44 | } |
| 45 | |
| 46 | private startTracking() { |
| 47 | this.intervalId = setInterval(() => { |
| 48 | this.displayElement.setAttribute('data-fps', `${this.callCount}`); // Оновлюємо значення data-attribute |
| 49 | this.callCount = 0; |
| 50 | }, 1000); |
| 51 | } |
| 52 | |
| 53 | public getTrackedFunction() { |
| 54 | return (...args: any[]) => { |