diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-05-18 16:55:39 +0100 |
---|---|---|
committer | Pablo Marquez <pablo.tello@arm.com> | 2020-03-05 16:47:10 +0000 |
commit | b46702118eddcfec11487be8dd23234066642d62 (patch) | |
tree | b80d1346c86f17a08e18879ad47c0e9999af27ac /SConscript | |
parent | e8291acc1d9e89c9274d31f0d5bb4779eb95588c (diff) | |
download | ComputeLibrary-b46702118eddcfec11487be8dd23234066642d62.tar.gz |
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>
Diffstat (limited to 'SConscript')
-rw-r--r-- | SConscript | 6 |
1 files changed, 6 insertions, 0 deletions
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': |