Fixed bug in host trace logging 23/187523/2
authorDavid Steele <david.steele@samsung.com>
Thu, 23 Aug 2018 20:26:11 +0000 (21:26 +0100)
committerDavid Steele <david.steele@samsung.com>
Wed, 16 Nov 2022 15:52:11 +0000 (15:52 +0000)
commitc53ddc298418fe85a4301f23fce122601eeafaf8
tree6753078041be7957cd850d8359340cd5ba7e9e7a
parenta04d20254a039ea24593b705b64f8bf5f1f74e80
Fixed bug in host trace logging

Trace macros in Ubuntu were not using the server context properly, so asserted after
65536 frames.

Added a getter to the stat-context-manager to get contexts by name, then utilized this
to add custom markers for tracing code.

(Trace macros are turned off by default, so they don't affect performance)

Enable by re-configuring with --enable-trace or gbs build --define "enable_trace 1"
in dali-core and dali-adaptor.

On desktop, also re-configure dali-adaptor with --enable-networklogging, and
run with DALI_NETWORK_CONTROL=3. Connect to the server using "nc localhost 3031"
and type "set_marker 131" to enable Update/Render/Custom trace.

On target, custom tags are sent to ttrace.

Change-Id: Iaff816f33c6c6034629759d1727a520a5cf5faf1
Signed-off-by: David Steele <david.steele@samsung.com>
dali/internal/system/common/performance-interface.h
dali/internal/system/common/performance-server.cpp
dali/internal/system/common/performance-server.h
dali/internal/system/common/stat-context-manager.cpp
dali/internal/system/common/stat-context-manager.h
dali/internal/trace/generic/trace-manager-impl-generic.cpp