Ignore ttrace for TV profile 33/309833/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Wed, 17 Apr 2024 05:54:03 +0000 (14:54 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 17 Apr 2024 05:56:48 +0000 (14:56 +0900)
Let we don't print trace log when we use TV profile.

ttrace log print at HWC level log, which should have less logs.
To avoid this log printing, let we just ignore ttrace only for TV profile.

Change-Id: I7a35ba0a4253195972b3363799b083ff941cbb3d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/trace/tizen/trace-manager-impl-tizen.cpp

index 0d2b2bd..8061215 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
@@ -58,7 +58,9 @@ void TraceManagerTizen::LogContext(bool start, const char* tag, const char* mess
 {
   if(start)
   {
+#ifndef DALI_PROFILE_TV // Avoid HWC log printing in TV
     traceBegin(TTRACE_TAG_GRAPHICS, tag ? tag : EMPTY_TAG);
+#endif // DALI_PROFILE_TV
 
     if(gTraceManagerEnablePrintLog)
     {
@@ -67,7 +69,9 @@ void TraceManagerTizen::LogContext(bool start, const char* tag, const char* mess
   }
   else
   {
+#ifndef DALI_PROFILE_TV // Avoid HWC log printing in TV
     traceEnd(TTRACE_TAG_GRAPHICS);
+#endif // DALI_PROFILE_TV
 
     if(gTraceManagerEnablePrintLog)
     {