-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/eina\" \
-@VALGRIND_CFLAGS@
+@VALGRIND_CFLAGS@ \
+@TTRACE_CFLAGS@
-lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @DL_LIBS@ @UNWIND_LIBS@
+lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @DL_LIBS@ @UNWIND_LIBS@ @TTRACE_LIBS@
lib_eina_libeina_la_DEPENDENCIES = @EINA_INTERNAL_LIBS@ @DL_INTERNAL_LIBS@
lib_eina_libeina_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
#include "eina_evlog.h"
#include "eina_debug.h"
+#ifdef ENABLE_TTRACE
+#include <ttrace.h>
+#endif
+
#ifdef EINA_HAVE_DEBUG
#ifdef HAVE_EVIL
if (detail_offset > 0) strcpy(strings + detail_offset, detail);
eina_spinlock_release(&_evlog_lock);
+
+// TIZEN_ONLY(160401): TTRACE
+#ifdef ENABLE_TTRACE
+ if(!strncmp(event, "+", 1))
+ traceBegin(TTRACE_TAG_GRAPHICS, event + 1);
+ else if(!strncmp(event, "-", 1))
+ traceEnd(TTRACE_TAG_GRAPHICS);
+#endif
+// TIZEN_ONLY(160401): TTRACE
+
}
EAPI Eina_Evlog_Buf *
EAPI void
eina_evlog(const char *event EINA_UNUSED, void *obj EINA_UNUSED, double srctime EINA_UNUSED, const char *detail EINA_UNUSED)
{
+// TIZEN_ONLY(160401): TTRACE
+#ifdef ENABLE_TTRACE
+ if(!strncmp(event, "+", 1))
+ traceBegin(TTRACE_TAG_GRAPHICS, event + 1);
+ else if(!strncmp(event, "-", 1))
+ traceEnd(TTRACE_TAG_GRAPHICS);
+#endif
+// TIZEN_ONLY(160401): TTRACE
}
EAPI Eina_Evlog_Buf *