diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-02-10 10:31:26 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-02-16 14:49:45 +0100 |
commit | 0adc9b615f118ebb78f5f2edfe0c1c0e41270d57 (patch) | |
tree | aa84e0793d6e95a94686b6caacc9a0b5e7e8611e /odk | |
parent | 52c998be025563802a5056a15352e4608311be1d (diff) |
GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than
can be viewed e.g. in the Chromium tracing view.
Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/CustomTarget_allheaders.mk | 2 | ||||
-rw-r--r-- | odk/CustomTarget_check.mk | 2 | ||||
-rw-r--r-- | odk/CustomTarget_doxygen.mk | 8 | ||||
-rw-r--r-- | odk/CustomTarget_html.mk | 2 | ||||
-rw-r--r-- | odk/CustomTarget_javadoc.mk | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/odk/CustomTarget_allheaders.mk b/odk/CustomTarget_allheaders.mk index 3c28f0cfcfe1..ea632209ea6b 100644 --- a/odk/CustomTarget_allheaders.mk +++ b/odk/CustomTarget_allheaders.mk @@ -34,6 +34,7 @@ $(odk_allheaders_DIR)/allheaders.hxx : \ $(call gb_Package_get_target,odk_headers_generated) \ | $(odk_allheaders_DIR)/.dir $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),ECH) ifeq ($(HAVE_GNUMAKE_FILE_FUNC),) printf '// Generated list of sal includes\n' > $@ && \ printf '#ifdef _WIN32\n' >> $@ && \ @@ -49,5 +50,6 @@ else $(call odk_genincludesheader) \ $(foreach file,$(shell cat $^),$(call odk_geninclude,$(file),$(findstring /win32/,$(file))))) endif + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),ECH) # vim: set noet sw=4 ts=4: diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk index f0b63489f054..b9dc8d358072 100644 --- a/odk/CustomTarget_check.mk +++ b/odk/CustomTarget_check.mk @@ -43,12 +43,14 @@ ifneq ($(gb_SUPPRESS_TESTS),) @true else $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CHK,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),CHK) $(call gb_Helper_print_on_error,\ $(PERL) $< \ $(INSTDIR)/$(SDKDIRNAME) \ $(odk_PLATFORM) '$(gb_Executable_EXT)' \ ,$@.log \ ) + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),CHK) endif # vim: set noet sw=4 ts=4: diff --git a/odk/CustomTarget_doxygen.mk b/odk/CustomTarget_doxygen.mk index 9a28a54c21d7..a693adebde34 100644 --- a/odk/CustomTarget_doxygen.mk +++ b/odk/CustomTarget_doxygen.mk @@ -39,6 +39,7 @@ $(call gb_CustomTarget_get_workdir,odk/docs)/cpp/Doxyfile : \ $(SRCDIR)/odk/docs/cpp/Doxyfile \ $(gb_Module_CURRENTMAKEFILE) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SED) sed -e 's!^INPUT = %$$!INPUT = $(call odk_cygwin_path,$(odk_cpp_DOXY_INPUT))!' \ -e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(call odk_cygwin_path,$(odk_cpp_DOXY_WORKDIR))!' \ -e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = "$(PRODUCTNAME) $(PRODUCTVERSION) SDK C/C++ API Reference"!' \ @@ -46,6 +47,7 @@ $(call gb_CustomTarget_get_workdir,odk/docs)/cpp/Doxyfile : \ -e 's!^QUIET = %$$!QUIET = $(if $(verbose),NO,YES)!' \ -e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(call odk_cygwin_path,$(odk_cpp_PREFIX))!' \ $< > $@ + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SED) $(call gb_CustomTarget_get_workdir,odk/docs)/cpp/doxygen.log : \ $(call gb_CustomTarget_get_workdir,odk/docs)/cpp/Doxyfile \ @@ -54,7 +56,9 @@ $(call gb_CustomTarget_get_workdir,odk/docs)/cpp/doxygen.log : \ $(call gb_Package_get_target,odk_headers) \ $(call gb_Package_get_target,odk_headers_generated) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GEN,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),GEN) rm -rf $(odk_cpp_DOXY_WORKDIR)/ && $(DOXYGEN) $< > $@ + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),GEN) $(eval $(call gb_CustomTarget_register_targets,odk/docs,\ idl/Doxyfile \ @@ -78,6 +82,7 @@ $(call gb_CustomTarget_get_workdir,odk/docs)/idl/Doxyfile : \ $(call gb_UnoApi_get_target,offapi) \ $(gb_Module_CURRENTMAKEFILE) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SED) sed -e 's!^INPUT = %$$!INPUT = $(call odk_cygwin_path,$(odk_idl_DOXY_INPUT))!' \ -e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(call odk_cygwin_path,$(odk_idl_DOXY_WORKDIR))!' \ -e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = "$(PRODUCTNAME) $(PRODUCTVERSION) SDK API Reference"!' \ @@ -86,11 +91,14 @@ $(call gb_CustomTarget_get_workdir,odk/docs)/idl/Doxyfile : \ -e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(call odk_cygwin_path,$(odk_idl_PREFIX))!' \ -e 's!^SHORT_NAMES = %$$!SHORT_NAMES = $(if $(filter WNT,$(OS)),YES,NO)!' \ $< > $@ + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SED) $(call gb_CustomTarget_get_workdir,odk/docs)/idl/doxygen.log : \ $(call gb_CustomTarget_get_workdir,odk/docs)/idl/Doxyfile \ $(SRCDIR)/odk/docs/idl/main.dox $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GEN,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),GEN) rm -rf $(odk_idl_DOXY_WORKDIR)/ && $(DOXYGEN) $< > $@ + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),GEN) # vim: set noet sw=4 ts=4: diff --git a/odk/CustomTarget_html.mk b/odk/CustomTarget_html.mk index ba3b55b7c271..750b7777bef0 100644 --- a/odk/CustomTarget_html.mk +++ b/odk/CustomTarget_html.mk @@ -19,6 +19,7 @@ $(eval $(call gb_CustomTarget_register_targets,odk/html,\ $(call gb_CustomTarget_get_workdir,odk/html)/%.html : $(SRCDIR)/odk/%.html $(call gb_Output_announce,$*.html,$(true),SED,1) + $(call gb_Trace_StartRange,$*.html,SED) sed -e 's|%PRODUCT_RELEASE%|$(PRODUCTVERSION)|g' \ -e 's|%DOXYGEN_PREFIX0%|$(if $(DOXYGEN),.,https://api.libreoffice.org)|g' \ -e 's|%DOXYGEN_PREFIX1%|$(if $(DOXYGEN),..,https://api.libreoffice.org)|g' \ @@ -26,5 +27,6 @@ $(call gb_CustomTarget_get_workdir,odk/html)/%.html : $(SRCDIR)/odk/%.html -e 's|%JAVADOC_PREFIX0%|$(if $(ENABLE_JAVA),.,https://api.libreoffice.org)|g' \ -e 's|%JAVADOC_PREFIX1%|$(if $(ENABLE_JAVA),..,https://api.libreoffice.org)|g' \ < $< > $@ + $(call gb_Trace_EndRange,$*.html,SED) # vim: set noet sw=4 ts=4: diff --git a/odk/CustomTarget_javadoc.mk b/odk/CustomTarget_javadoc.mk index f4562f092d50..eefc26fd58ec 100644 --- a/odk/CustomTarget_javadoc.mk +++ b/odk/CustomTarget_javadoc.mk @@ -31,6 +31,7 @@ $(call gb_CustomTarget_get_workdir,odk/docs/java/ref)/%.html : \ $(call gb_CustomTarget_get_workdir,odk/docs/java/ref)/javadoc_log.txt : \ $(call gb_Jar_get_target,ridl) $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),JDC,1) + $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),JDC) $(call gb_Helper_abbreviate_dirs,\ $(JAVADOC) -source $(JAVA_SOURCE_VER) -J-Xmx120m -use -splitindex \ -windowtitle "Java UNO Runtime Reference" \ @@ -44,5 +45,6 @@ $(call gb_CustomTarget_get_workdir,odk/docs/java/ref)/javadoc_log.txt : \ $(odk_JAVAPACKAGES) \ $(if $(JAVADOCISGJDOC),,-notimestamp) \ > $@) + $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),JDC) # vim: set noet sw=4 ts=4: |