perf(gui): Resolve massive frametime bloat by throttling telemetry and optimizing UI updates
This commit is contained in:
18
reproduce_delay.py
Normal file
18
reproduce_delay.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import time
|
||||
from ai_client import get_gemini_cache_stats
|
||||
|
||||
def reproduce_delay():
|
||||
print("Starting reproduction of Gemini cache list delay...")
|
||||
|
||||
start_time = time.time()
|
||||
try:
|
||||
stats = get_gemini_cache_stats()
|
||||
elapsed = (time.time() - start_time) * 1000.0
|
||||
print(f"get_gemini_cache_stats() took {elapsed:.2f}ms")
|
||||
print(f"Stats: {stats}")
|
||||
except Exception as e:
|
||||
print(f"Error calling get_gemini_cache_stats: {e}")
|
||||
print("Note: This might fail if no valid credentials.toml exists or API key is invalid.")
|
||||
|
||||
if __name__ == "__main__":
|
||||
reproduce_delay()
|
||||
Reference in New Issue
Block a user