aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-22 10:49:29 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-22 10:49:29 +0000
commitc76a30af41e50932847230631d26bfa9635ebd62 (patch)
tree71cc15c6dae10b3cbdc78903dd432287d285fbe0 /launch.py
parent90eb731ff1d73fdc5872ff9682d5c88c9737ba38 (diff)
downloadstable-diffusion-webui-gfx803-c76a30af41e50932847230631d26bfa9635ebd62.tar.gz
stable-diffusion-webui-gfx803-c76a30af41e50932847230631d26bfa9635ebd62.tar.bz2
stable-diffusion-webui-gfx803-c76a30af41e50932847230631d26bfa9635ebd62.zip
more info for startup timings
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/launch.py b/launch.py
index d46e9e27..e4c2ce99 100644
--- a/launch.py
+++ b/launch.py
@@ -25,9 +25,11 @@ start = launch_utils.start
def main():
+ launch_utils.startup_timer.record("initial startup")
- if not args.skip_prepare_environment:
- prepare_environment()
+ with launch_utils.startup_timer.subcategory("prepare environment"):
+ if not args.skip_prepare_environment:
+ prepare_environment()
if args.test_server:
configure_for_tests()