raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=956182c7c57dd58699f757fb608d199dd00c70e9

commit 956182c7c57dd58699f757fb608d199dd00c70e9
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Aug 17 11:10:26 2015 +0900

    efl debug - add the ability to begin/end states not just call ranges
---
 src/lib/ecore/ecore_anim.c |  2 ++
 src/lib/eina/eina_evlog.h  | 12 +++++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 434c73c..8c61047 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -247,6 +247,7 @@ static void
 _begin_tick(void)
 {
    if (ticking) return;
+   eina_evlog(">animator", NULL, ecore_time_get(), NULL);
    ticking = 1;
    switch (src)
      {
@@ -267,6 +268,7 @@ static void
 _end_tick(void)
 {
    if (!ticking) return;
+   eina_evlog("<animator", NULL, ecore_time_get(), NULL);
    ticking = 0;
 
    _timer_tick_end();
diff --git a/src/lib/eina/eina_evlog.h b/src/lib/eina/eina_evlog.h
index 552a009..f8be828 100644
--- a/src/lib/eina/eina_evlog.h
+++ b/src/lib/eina/eina_evlog.h
@@ -64,13 +64,19 @@ struct _Eina_Evlog_Buf
  * "+eventname"
  * "-eventname"
  * "!eventname"
+ * ">eventname"
+ * "<eventname"
  *
  * etc. The "+" char means an event is beginning (and any subsequent
  * events logged are really children of this event). The "-" char means an
  * event is ending and so all child events SHOULD have ended by now. A "!"
- * character means the event is a one-off with no beginning or end. Any string
- * following this initial character is the eventy name (and must be provided
- * in the exact same string at both + and - events). This is what will be
+ * character means the event is a one-off with no beginning or end. A ">"
+ * character means we begin this "state" of the process (these are separate
+ * to "+" and "-" events and don't nest - arenot related to a thread or
+ * any other event, but just a state). "<" Ends the given state given by
+ * the "eventname" spart of the string.  Any string following this initial
+ * character is the event or state name (and must be provided in the exact
+ * same string at both "+", "<" and "-", ">" events). This is what will be
  * displayed in a debugger (and may be a well known string thus given a nice
  * UI flourish with icons, labels and colors, so don't change this string
  * unless you want to impact such visibility of these events). The event

-- 


Reply via email to