# module: trace, backend: ubuntu
adaptor_trace_ubuntu_src_files=\
- ${adaptor_trace_dir}/ubuntu/trace-manager-impl-ubuntu.cpp \
- ${adaptor_trace_dir}/ubuntu/trace-factory-ubuntu.cpp
+ ${adaptor_trace_dir}/generic/trace-manager-impl-generic.cpp \
+ ${adaptor_trace_dir}/generic/trace-factory-generic.cpp
# module: trace, backend: tizen
adaptor_trace_tizen_src_files=\
${adaptor_trace_dir}/tizen/trace-manager-impl-tizen.cpp \
- ${adaptor_trace_dir}/tizen/trace-factory-tizen.cpp
\ No newline at end of file
+ ${adaptor_trace_dir}/tizen/trace-factory-tizen.cpp
*/
// EXTERNAL INCLUDES
-#include <dali/internal/trace/ubuntu/trace-manager-impl-ubuntu.h>
#include <dali/internal/system/common/performance-interface.h>
+#include "trace-manager-impl-generic.h"
// INTERNAL INCLUDES
namespace Adaptor
{
-TraceManagerUbuntu* TraceManagerUbuntu::traceManagerUbuntu = nullptr;
+TraceManagerGeneric* TraceManagerGeneric::traceManagerGeneric = nullptr;
-TraceManagerUbuntu::TraceManagerUbuntu( PerformanceInterface* performanceInterface )
+TraceManagerGeneric::TraceManagerGeneric( PerformanceInterface* performanceInterface )
: TraceManager( performanceInterface )
{
- TraceManagerUbuntu::traceManagerUbuntu = this;
+ TraceManagerGeneric::traceManagerGeneric = this;
}
-Dali::Integration::Trace::LogContextFunction TraceManagerUbuntu::GetLogContextFunction()
+Dali::Integration::Trace::LogContextFunction TraceManagerGeneric::GetLogContextFunction()
{
return LogContext;
}
-void TraceManagerUbuntu::LogContext( bool start, const char* tag )
+void TraceManagerGeneric::LogContext( bool start, const char* tag )
{
if( start )
{
- unsigned short contextId = traceManagerUbuntu->mPerformanceInterface->AddContext( tag );
- traceManagerUbuntu->mPerformanceInterface->AddMarker( PerformanceInterface::START, contextId );
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->AddContext( tag );
+ traceManagerGeneric->mPerformanceInterface->AddMarker( PerformanceInterface::START, contextId );
}
else
{
- unsigned short contextId = traceManagerUbuntu->mPerformanceInterface->AddContext( tag );
- traceManagerUbuntu->mPerformanceInterface->AddMarker( PerformanceInterface::END, contextId );
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->AddContext( tag );
+ traceManagerGeneric->mPerformanceInterface->AddMarker( PerformanceInterface::END, contextId );
}
}
{
class PerformanceInterface;
-class TraceManagerUbuntu : public Dali::Internal::Adaptor::TraceManager
+class TraceManagerGeneric : public Dali::Internal::Adaptor::TraceManager
{
public:
/**
* Static member to hold TraceManagerUbuntu instance. This allows
* to access PerformanceInterface for network logging.
*/
- static TraceManagerUbuntu* traceManagerUbuntu;
+ static TraceManagerGeneric* traceManagerGeneric;
/**
* Explicit Constructor
*/
- explicit TraceManagerUbuntu( PerformanceInterface* performanceInterface );
+ explicit TraceManagerGeneric( PerformanceInterface* performanceInterface );
protected:
/**
* Destructor
*/
- ~TraceManagerUbuntu() override = default;
+ ~TraceManagerGeneric() override = default;
/**
* Obtain the LogContextFunction method (Ubuntu specific) used for tracing