fixes
This commit is contained in:
@@ -53,6 +53,7 @@ Integration:
|
||||
- Exposed via Hook API at /api/performance
|
||||
"""
|
||||
from __future__ import annotations
|
||||
import sys
|
||||
import time
|
||||
import psutil
|
||||
import threading
|
||||
@@ -241,6 +242,7 @@ class PerformanceMonitor:
|
||||
cpu = self._cpu_percent
|
||||
ilag = self._input_lag_ms
|
||||
last_calc_fps = self._last_calculated_fps
|
||||
total_frames = float(self._frame_count)
|
||||
timings_snapshot = dict(self._component_timings)
|
||||
counts_snapshot = dict(self._component_counts)
|
||||
max_snapshot = dict(self._component_max)
|
||||
@@ -254,7 +256,8 @@ class PerformanceMonitor:
|
||||
'cpu_percent': cpu,
|
||||
'cpu_percent_avg': self._get_avg('cpu_percent'),
|
||||
'input_lag_ms': ilag,
|
||||
'input_lag_ms_avg': self._get_avg('input_lag_ms')
|
||||
'input_lag_ms_avg': self._get_avg('input_lag_ms'),
|
||||
'total_frames': total_frames
|
||||
}
|
||||
for name, elapsed in timings_snapshot.items():
|
||||
metrics[f'time_{name}_ms'] = elapsed
|
||||
|
||||
Reference in New Issue
Block a user