# 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
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include <dali/internal/trace/common/trace-factory.h>
+#include <dali/internal/trace/generic/trace-manager-impl-generic.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+namespace TraceManagerFactory
+{
+
+// TraceManager Factory to be implemented by the platform
+TraceManagerUPtr CreateTraceFactory( PerformanceInterface* performanceInterface )
+{
+ return TraceManagerUPtr( new Dali::Internal::Adaptor::TraceManagerUbuntu( performanceInterface ) );
+}
+
+} // namespace TraceManagerFactory
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// EXTERNAL INCLUDES
+#include <dali/internal/system/common/performance-interface.h>
+#include "trace-manager-impl-generic.h"
+
+// INTERNAL INCLUDES
+
+namespace Dali
+{
+
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+TraceManagerGeneric* TraceManagerGeneric::traceManagerGeneric = nullptr;
+
+TraceManagerGeneric::TraceManagerGeneric( PerformanceInterface* performanceInterface )
+: TraceManager( performanceInterface )
+{
+ TraceManagerGeneric::traceManagerGeneric = this;
+}
+
+Dali::Integration::Trace::LogContextFunction TraceManagerGeneric::GetLogContextFunction()
+{
+ return LogContext;
+}
+
+void TraceManagerGeneric::LogContext( bool start, const char* tag )
+{
+ if( start )
+ {
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->AddContext( tag );
+ traceManagerGeneric->mPerformanceInterface->AddMarker( PerformanceInterface::START, contextId );
+ }
+ else
+ {
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->AddContext( tag );
+ traceManagerGeneric->mPerformanceInterface->AddMarker( PerformanceInterface::END, contextId );
+ }
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
--- /dev/null
+#ifndef DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
+#define DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
+
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// EXTERNAL INCLUDES
+
+// INTERNAL INCLUDES
+#include <dali/internal/trace/common/trace-manager-impl.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+class PerformanceInterface;
+
+class TraceManagerGeneric : public Dali::Internal::Adaptor::TraceManager
+{
+public:
+ /**
+ * Static member to hold TraceManagerUbuntu instance. This allows
+ * to access PerformanceInterface for network logging.
+ */
+ static TraceManagerGeneric* traceManagerGeneric;
+
+ /**
+ * Explicit Constructor
+ */
+ explicit TraceManagerGeneric( PerformanceInterface* performanceInterface );
+
+protected:
+ /**
+ * Destructor
+ */
+ ~TraceManagerGeneric() override = default;
+
+ /**
+ * Obtain the LogContextFunction method (Ubuntu specific) used for tracing
+ */
+ virtual Dali::Integration::Trace::LogContextFunction GetLogContextFunction() final;
+
+private:
+
+ /**
+ * LogContext method (Ubuntu specific) used for tracing
+ */
+ static void LogContext( bool start, const char* tag );
+};
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
+
+#endif // DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
+++ /dev/null
-/*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#include <dali/internal/trace/common/trace-factory.h>
-#include <dali/internal/trace/ubuntu/trace-manager-impl-ubuntu.h>
-
-namespace Dali
-{
-
-namespace Internal
-{
-
-namespace Adaptor
-{
-
-namespace TraceManagerFactory
-{
-
-// TraceManager Factory to be implemented by the platform
-TraceManagerUPtr CreateTraceFactory( PerformanceInterface* performanceInterface )
-{
- return TraceManagerUPtr( new Dali::Internal::Adaptor::TraceManagerUbuntu( performanceInterface ) );
-}
-
-} // namespace TraceManagerFactory
-
-} // namespace Adaptor
-
-} // namespace Internal
-
-} // namespace Dali
\ No newline at end of file
+++ /dev/null
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-// EXTERNAL INCLUDES
-#include <dali/internal/trace/ubuntu/trace-manager-impl-ubuntu.h>
-#include <dali/internal/system/common/performance-interface.h>
-
-// INTERNAL INCLUDES
-
-namespace Dali
-{
-
-
-namespace Internal
-{
-
-namespace Adaptor
-{
-
-TraceManagerUbuntu* TraceManagerUbuntu::traceManagerUbuntu = nullptr;
-
-TraceManagerUbuntu::TraceManagerUbuntu( PerformanceInterface* performanceInterface )
-: TraceManager( performanceInterface )
-{
- TraceManagerUbuntu::traceManagerUbuntu = this;
-}
-
-Dali::Integration::Trace::LogContextFunction TraceManagerUbuntu::GetLogContextFunction()
-{
- return LogContext;
-}
-
-void TraceManagerUbuntu::LogContext( bool start, const char* tag )
-{
- if( start )
- {
- unsigned short contextId = traceManagerUbuntu->mPerformanceInterface->AddContext( tag );
- traceManagerUbuntu->mPerformanceInterface->AddMarker( PerformanceInterface::START, contextId );
- }
- else
- {
- unsigned short contextId = traceManagerUbuntu->mPerformanceInterface->AddContext( tag );
- traceManagerUbuntu->mPerformanceInterface->AddMarker( PerformanceInterface::END, contextId );
- }
-}
-
-} // namespace Adaptor
-
-} // namespace Internal
-
-} // namespace Dali
+++ /dev/null
-#ifndef DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
-#define DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H
-
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-// EXTERNAL INCLUDES
-
-// INTERNAL INCLUDES
-#include <dali/internal/trace/common/trace-manager-impl.h>
-
-namespace Dali
-{
-
-namespace Internal
-{
-
-namespace Adaptor
-{
-class PerformanceInterface;
-
-class TraceManagerUbuntu : public Dali::Internal::Adaptor::TraceManager
-{
-public:
- /**
- * Static member to hold TraceManagerUbuntu instance. This allows
- * to access PerformanceInterface for network logging.
- */
- static TraceManagerUbuntu* traceManagerUbuntu;
-
- /**
- * Explicit Constructor
- */
- explicit TraceManagerUbuntu( PerformanceInterface* performanceInterface );
-
-protected:
- /**
- * Destructor
- */
- ~TraceManagerUbuntu() override = default;
-
- /**
- * Obtain the LogContextFunction method (Ubuntu specific) used for tracing
- */
- virtual Dali::Integration::Trace::LogContextFunction GetLogContextFunction() final;
-
-private:
-
- /**
- * LogContext method (Ubuntu specific) used for tracing
- */
- static void LogContext( bool start, const char* tag );
-};
-
-} // namespace Adaptor
-
-} // namespace Internal
-
-} // namespace Dali
-
-#endif // DALI_INTERNAL_TRACE_MANAGER_IMPL_UBUNTU_H