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 /external/apr | |
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 'external/apr')
-rw-r--r-- | external/apr/ExternalProject_apr.mk | 4 | ||||
-rw-r--r-- | external/apr/ExternalProject_apr_util.mk | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/external/apr/ExternalProject_apr.mk b/external/apr/ExternalProject_apr.mk index 00e3ab67086a..1c94480e5ab7 100644 --- a/external/apr/ExternalProject_apr.mk +++ b/external/apr/ExternalProject_apr.mk @@ -17,14 +17,17 @@ $(eval $(call gb_ExternalProject_use_nmake,apr,build)) ifeq ($(COM),MSC) $(call gb_ExternalProject_get_state_target,apr,build): + $(call gb_Trace_StartRange,apr,EXTERNAL) $(call gb_ExternalProject_run,build,\ nmake -nologo -f apr.mak \ CFG="apr - Win32 $(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)" \ RECURSE=0 \ ) + $(call gb_Trace_EndRange,apr,EXTERNAL) else $(call gb_ExternalProject_get_state_target,apr,build): + $(call gb_Trace_StartRange,apr,EXTERNAL) +$(call gb_ExternalProject_run,build,\ $(if $(ENABLE_MACOSX_SANDBOX),ac_cv_func_fdatasync=no) \ ./configure \ @@ -33,6 +36,7 @@ $(call gb_ExternalProject_get_state_target,apr,build): $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM))\ && $(MAKE) libapr-1.la \ ) + $(call gb_Trace_EndRange,apr,EXTERNAL) endif diff --git a/external/apr/ExternalProject_apr_util.mk b/external/apr/ExternalProject_apr_util.mk index 4de76ba4c43a..a311f32e8e01 100644 --- a/external/apr/ExternalProject_apr_util.mk +++ b/external/apr/ExternalProject_apr_util.mk @@ -19,14 +19,17 @@ $(eval $(call gb_ExternalProject_use_nmake,apr_util,build)) ifeq ($(COM),MSC) $(call gb_ExternalProject_get_state_target,apr_util,build): + $(call gb_Trace_StartRange,apr_util,EXTERNAL) $(call gb_ExternalProject_run,build,\ nmake -nologo -f aprutil.mak \ CFG="aprutil - Win32 $(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)" \ RECURSE=0 \ ) + $(call gb_Trace_EndRange,apr_util,EXTERNAL) else $(call gb_ExternalProject_get_state_target,apr_util,build): + $(call gb_Trace_StartRange,apr_util,EXTERNAL) +$(call gb_ExternalProject_run,build,\ ./configure \ --enable-static --disable-shared \ @@ -35,6 +38,7 @@ $(call gb_ExternalProject_get_state_target,apr_util,build): --with-apr=$(call gb_UnpackedTarball_get_dir,apr)/apr-1-config \ && $(MAKE) libaprutil-1.la \ ) + $(call gb_Trace_EndRange,apr_util,EXTERNAL) endif |