diff options
-rw-r--r-- | src/xine-utils/monitor.c | 27 | ||||
-rw-r--r-- | src/xine-utils/xineutils.h | 16 |
2 files changed, 28 insertions, 15 deletions
diff --git a/src/xine-utils/monitor.c b/src/xine-utils/monitor.c index e1a6ab57d..282f70e99 100644 --- a/src/xine-utils/monitor.c +++ b/src/xine-utils/monitor.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: monitor.c,v 1.3 2002/03/21 21:30:51 guenter Exp $ + * $Id: monitor.c,v 1.4 2002/06/07 22:15:47 f1rmb Exp $ * * debug print and profiling functions - implementation * @@ -134,4 +134,29 @@ void xine_profiler_print_results () { } } + +#else /* DEBUG */ + +#define NO_PROFILER_MSG {printf("%s(): profiler is not enable.\n", __XINE_FUNCTION__);} + +/* Dummies */ +void xine_profiler_init (void) { + NO_PROFILER_MSG +} +int xine_profiler_allocate_slot (char *label) { + NO_PROFILER_MSG + return -1; +} +void xine_profiler_start_count (int id) { + NO_PROFILER_MSG +} +void xine_profiler_stop_count (int id) { + NO_PROFILER_MSG +} +void xine_profiler_print_results (void) { + NO_PROFILER_MSG +} + #endif + + diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 5db895a64..214331940 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.14 2002/05/01 19:41:55 guenter Exp $ + * $Id: xineutils.h,v 1.15 2002/06/07 22:15:47 f1rmb Exp $ * */ #ifndef XINEUTILS_H @@ -580,13 +580,11 @@ void xine_probe_fast_memcpy(config_values_t *config); #endif -#ifdef DEBUG /* * Debug stuff */ - /* - * profiling + * profiling (unworkable in non DEBUG isn't defined) */ void xine_profiler_init (void); int xine_profiler_allocate_slot (char *label); @@ -594,16 +592,6 @@ void xine_profiler_start_count (int id); void xine_profiler_stop_count (int id); void xine_profiler_print_results (void); -#else /* no DEBUG, release version */ - -#define xine_profiler_init() -#define xine_profiler_allocate_slot(label) (-1) -#define xine_profiler_start_count(id) -#define xine_profiler_stop_count(id) -#define xine_profiler_print_results() - -#endif /* DEBUG*/ - /* * Allocate and clean memory size_t 'size', then return the pointer * to the allocated memory. |