X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali%2Fintegration-api%2Fdebug.h;h=828aa3af380482bd52d5cb3917355d5401876ea0;hb=a62dc57b01b08ebcfd0aed24afc8f156fbe7c619;hp=8eff3bc4d964cb8367c55302c186f230a4551a70;hpb=47b16a7c77caf9785171b8ce882349c5755afd84;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/integration-api/debug.h b/dali/integration-api/debug.h index 8eff3bc..828aa3a 100644 --- a/dali/integration-api/debug.h +++ b/dali/integration-api/debug.h @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include #include // INTERNAL INCLUDES @@ -89,6 +90,8 @@ DALI_IMPORT_API void UninstallLogFunction(); #define DALI_LOG_ERROR_NOFN(format, args...) Dali::Integration::Log::LogMessage(Dali::Integration::Log::DebugError, format, ## args) +#define DALI_LOG_WARNING_NOFN(format, args...) Dali::Integration::Log::LogMessage(Dali::Integration::Log::DebugWarning, format, ## args) + /** * Provides unfiltered logging for fps monitor */ @@ -250,7 +253,6 @@ public: static Filter *gElement; static Filter *gActor; static Filter *gShader; - static Filter *gDynamics; private: LogLevel mLoggingLevel; @@ -345,6 +347,19 @@ public: \ std::string mDebugString; /** + * Print all the actor tree names + **/ +#define DALI_LOG_ACTOR_TREE( node ) { \ + std::stringstream branch; \ + Node* tempNode = node; \ + while( tempNode ) { \ + branch << "<" << tempNode->mDebugString << ">::"; \ + tempNode = tempNode->GetParent(); \ + } \ + DALI_LOG_ERROR_NOFN("Actor tree: %s\n", branch.str().c_str()); \ +} + +/** * Allows one object to set another object's debug string */ #define DALI_LOG_SET_OBJECT_STRING(object, string) (object->mDebugString = string) @@ -373,6 +388,7 @@ public: \ #else // DEBUG_ENABLED #define DALI_LOG_OBJECT_STRING_DECLARATION +#define DALI_LOG_ACTOR_TREE(node) #define DALI_LOG_SET_OBJECT_STRING(object, string) #define DALI_LOG_FMT_OBJECT_STRING(object, fmt, args...) #define DALI_LOG_GET_OBJECT_STRING(object)