@@ -702,6 +702,7 @@ def translation_branch(self):
702
702
def build (self ):
703
703
"""Build this version/language doc."""
704
704
logging .info ("Build start." )
705
+ start_time = perf_counter ()
705
706
sphinxopts = list (self .language .sphinxopts )
706
707
sphinxopts .extend (["-q" ])
707
708
if self .language .tag != "en" :
@@ -778,7 +779,7 @@ def is_mac():
778
779
setup_switchers (
779
780
self .versions , self .languages , self .checkout / "Doc" / "build" / "html"
780
781
)
781
- logging .info ("Build done." )
782
+ logging .info ("Build done (%.1f minutes)." , ( perf_counter () - start_time ) / 60 )
782
783
783
784
def build_venv (self ):
784
785
"""Build a venv for the specific Python version.
@@ -800,6 +801,7 @@ def build_venv(self):
800
801
def copy_build_to_webroot (self ):
801
802
"""Copy a given build to the appropriate webroot with appropriate rights."""
802
803
logging .info ("Publishing start." )
804
+ start_time = perf_counter ()
803
805
self .www_root .mkdir (parents = True , exist_ok = True )
804
806
if self .language .tag == "en" :
805
807
target = self .www_root / self .version .name
@@ -912,7 +914,9 @@ def copy_build_to_webroot(self):
912
914
purge (* prefixes )
913
915
for prefix in prefixes :
914
916
purge (* [prefix + p for p in changed ])
915
- logging .info ("Publishing done" )
917
+ logging .info (
918
+ "Publishing done (%.1f minutes)." , (perf_counter () - start_time ) / 60
919
+ )
916
920
917
921
def should_rebuild (self ):
918
922
state = self .load_state ()
0 commit comments