Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: edebug.h timers.c Log Message: Use separate debug flags for timers and idlers. =================================================================== RCS file: /cvs/e/e16/e/src/edebug.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- edebug.h 8 Dec 2007 17:54:38 -0000 1.5 +++ edebug.h 26 Jan 2008 11:43:12 -0000 1.6 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2007 Kim Woelders + * Copyright (C) 2006-2008 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -49,6 +49,8 @@ #define EDBUG_TYPE_SELECTION 147 #define EDBUG_TYPE_FONTS 148 #define EDBUG_TYPE_DBUS 149 +#define EDBUG_TYPE_TIMERS 150 +#define EDBUG_TYPE_IDLERS 151 #define EDBUG_TYPE_COMPMGR 161 #define EDBUG_TYPE_COMPMGR2 162 =================================================================== RCS file: /cvs/e/e16/e/src/timers.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- timers.c 5 Sep 2007 19:12:56 -0000 1.32 +++ timers.c 26 Jan 2008 11:43:12 -0000 1.33 @@ -1,6 +1,6 @@ /* * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors - * Copyright (C) 2006-2007 Kim Woelders + * Copyright (C) 2006-2008 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -62,7 +62,7 @@ if (in_time < 0.) /* No negative in-times */ in_time = 0.; - if (EDebug(EDBUG_TYPE_EVENTS)) + if (EDebug(EDBUG_TYPE_TIMERS)) Eprintf("DoIn %8.3f: %s\n", in_time, name); qe->name = Estrdup(name); @@ -112,7 +112,7 @@ if (qe->at_time > t + 200e-6) /* Within 200 us is close enough */ break; - if (EDebug(EDBUG_TYPE_EVENTS)) + if (EDebug(EDBUG_TYPE_TIMERS)) Eprintf("TimersRun - run %8.3lf: %s\n", qe->at_time - t, qe->name); /* remove it */ @@ -130,7 +130,7 @@ if (tt <= 0.) /* Avoid some redundant debug output */ return tt; - if (EDebug(EDBUG_TYPE_EVENTS) > 1) + if (EDebug(EDBUG_TYPE_TIMERS) > 1) { Qentry *qp; @@ -140,7 +140,7 @@ t = (qe) ? qe->at_time - t : 0.; - if (EDebug(EDBUG_TYPE_EVENTS)) + if (EDebug(EDBUG_TYPE_TIMERS)) Eprintf("TimersRun - next in %8.3lf\n", t); return t; @@ -222,7 +222,7 @@ { Idler *id; - if (EDebug(EDBUG_TYPE_EVENTS)) + if (EDebug(EDBUG_TYPE_IDLERS)) Eprintf("IdlersRun\n"); ECORE_LIST_FOR_EACH(idler_list, id) id->func(id->data); ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs