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 <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2712
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
diff --git a/SConscript b/SConscript
index 66dfff4..f3ae8c3 100644
--- a/SConscript
+++ b/SConscript
@@ -247,6 +247,12 @@
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':