mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
add hiding and a colspans to startup profile table
This commit is contained in:
parent
b3390a9840
commit
a5e851028e
3 changed files with 81 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import inspect
|
||||
import os
|
||||
from collections import namedtuple
|
||||
from typing import Optional, Dict, Any
|
||||
|
||||
|
|
@ -123,7 +124,7 @@ def app_started_callback(demo: Optional[Blocks], app: FastAPI):
|
|||
for c in callback_map['callbacks_app_started']:
|
||||
try:
|
||||
c.callback(demo, app)
|
||||
timer.startup_timer.record(c.script)
|
||||
timer.startup_timer.record(os.path.basename(c.script))
|
||||
except Exception:
|
||||
report_exception(c, 'app_started_callback')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue