Print additional logs for ttrace which is not be used by tag.
Currently, we only use this info for tizen
Change-Id: I6c564dec574e6033ec2f63f5ae21ea8c4f3a4249
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
delete mCore;
}
-void TestApplication::LogContext(bool start, const char* tag)
+void TestApplication::LogContext(bool start, const char* tag, const char* message)
{
if(start)
{
- fprintf(stderr, "INFO: Trace Start: %s\n", tag);
+ fprintf(stderr, "INFO: Trace Start: %s %s\n", tag, message ? message : "");
}
else
{
- fprintf(stderr, "INFO: Trace End: %s\n", tag);
+ fprintf(stderr, "INFO: Trace End: %s %s\n", tag, message ? message : "");
}
}
#define DALI_TEST_APPLICATION_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
void InitializeCore();
~TestApplication() override;
static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message);
- static void LogContext(bool start, const char* tag);
+ static void LogContext(bool start, const char* tag, const char* message);
Dali::Integration::Core& GetCore();
TestPlatformAbstraction& GetPlatform();
TestRenderController& GetRenderController();
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
delete mCore;
}
-void TestGraphicsApplication::LogContext(bool start, const char* tag)
+void TestGraphicsApplication::LogContext(bool start, const char* tag, const char* message)
{
if(start)
{
- fprintf(stderr, "INFO: Trace Start: %s\n", tag);
+ fprintf(stderr, "INFO: Trace Start: %s %s\n", tag, message ? message : "");
}
else
{
- fprintf(stderr, "INFO: Trace End: %s\n", tag);
+ fprintf(stderr, "INFO: Trace End: %s %s\n", tag, message ? message : "");
}
}
void InitializeCore();
~TestGraphicsApplication() override;
static void LogMessage(Dali::Integration::Log::DebugPriority level, std::string& message);
- static void LogContext(bool start, const char* tag);
+ static void LogContext(bool start, const char* tag, const char* message);
Dali::Integration::Core& GetCore();
TestPlatformAbstraction& GetPlatform();
TestRenderController& GetRenderController();
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
return LogContext;
}
-void TraceManagerAndroid::LogContext(bool start, const char* tag)
+void TraceManagerAndroid::LogContext(bool start, const char* tag, const char* message)
{
if(traceManagerAndroid && traceManagerAndroid->mPerformanceInterface)
{
#define DALI_INTERNAL_TRACE_MANAGER_IMPL_ANDROID_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
/**
* LogContext method (Android specific) used for tracing
*/
- static void LogContext(bool start, const char* tag);
+ static void LogContext(bool start, const char* tag, const char* message);
};
} // namespace Adaptor
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
return LogContext;
}
-void TraceManagerGeneric::LogContext(bool start, const char* tag)
+void TraceManagerGeneric::LogContext(bool start, const char* tag, const char* message)
{
if(traceManagerGeneric && traceManagerGeneric->mPerformanceInterface)
{
if(start)
{
- unsigned short contextId = traceManagerGeneric->mPerformanceInterface->GetContextId( tag );
- if( !contextId )
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->GetContextId(tag);
+ if(!contextId)
{
- contextId = traceManagerGeneric->mPerformanceInterface->AddContext( tag );
+ contextId = traceManagerGeneric->mPerformanceInterface->AddContext(tag);
}
traceManagerGeneric->mPerformanceInterface->AddMarker(PerformanceInterface::START, contextId);
}
else
{
- unsigned short contextId = traceManagerGeneric->mPerformanceInterface->GetContextId( tag );
+ unsigned short contextId = traceManagerGeneric->mPerformanceInterface->GetContextId(tag);
traceManagerGeneric->mPerformanceInterface->AddMarker(PerformanceInterface::END, contextId);
}
}
#define DALI_INTERNAL_TRACE_MANAGER_IMPL_GENERIC_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
/**
* LogContext method (Generic specific) used for tracing
*/
- static void LogContext(bool start, const char* tag);
+ static void LogContext(bool start, const char* tag, const char* message);
};
} // namespace Adaptor
/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
return LogContext;
}
-void TraceManagerTizen::LogContext(bool start, const char* tag)
+void TraceManagerTizen::LogContext(bool start, const char* tag, const char* message)
{
if(start)
{
if(gTraceManagerEnablePrintLog)
{
- DALI_LOG_DEBUG_INFO("BEGIN: %s\n", tag ? tag : EMPTY_TAG);
+ DALI_LOG_DEBUG_INFO("BEGIN: %s%s%s\n", tag ? tag : EMPTY_TAG, message ? " " : "", message ? message : "");
}
}
else
if(gTraceManagerEnablePrintLog)
{
- DALI_LOG_DEBUG_INFO("END: %s\n", tag ? tag : EMPTY_TAG);
+ DALI_LOG_DEBUG_INFO("END: %s%s%s\n", tag ? tag : EMPTY_TAG, message ? " " : "", message ? message : "");
}
}
}
#define DALI_INTERNAL_TRACE_MANAGER_IMPL_TIZEN_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
/**
* LogContext method (Tizen specific) used for tracing
*/
- static void LogContext(bool start, const char* tag);
+ static void LogContext(bool start, const char* tag, const char* message);
};
} // namespace Adaptor