From b46702118eddcfec11487be8dd23234066642d62 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Fri, 18 May 2018 16:55:39 +0100 Subject: COMPMID-1181: Support for tracing configuration This patch adds support for tracing function and kernel configuration arguments. The trace is printed to stdout. To enable tracing run the script: scripts/enable_tracing.py and recompile the library with tracing=1. Change-Id: If6626785e263d9023899b20e175a53652d70a605 Signed-off-by: morgolock Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2712 Tested-by: Arm Jenkins Reviewed-by: Sang-Hoon Park Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- SConscript | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'SConscript') diff --git a/SConscript b/SConscript index 66dfff4511..f3ae8c3c86 100644 --- a/SConscript +++ b/SConscript @@ -247,6 +247,12 @@ if env['gles_compute']: runtime_files += Glob('src/runtime/GLES_COMPUTE/functions/*.cpp') graph_files += Glob('src/graph/backends/GLES/*.cpp') +if env['tracing']: + arm_compute_env.Append(CPPDEFINES = ['ARM_COMPUTE_TRACING_ENABLED']) +else: + # Remove TracePoint files if tracing is disabled: + core_files = [ f for f in core_files if not "TracePoint" in str(f)] + runtime_files = [ f for f in runtime_files if not "TracePoint" in str(f)] bootcode_o = [] if env['os'] == 'bare_metal': -- cgit v1.2.1