From dc1ae5d9a88fdf89ab3de73380fefb0e70316305 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Tue, 14 Aug 2001 11:57:40 +0000 Subject: return of the profiler CVS patchset: 428 CVS date: 2001/08/14 11:57:40 --- src/xine-engine/xine.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/xine-engine/xine.c') diff --git a/src/xine-engine/xine.c b/src/xine-engine/xine.c index 6123aa18d..5b30316ff 100644 --- a/src/xine-engine/xine.c +++ b/src/xine-engine/xine.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: xine.c,v 1.40 2001/08/13 12:52:33 ehasenle Exp $ + * $Id: xine.c,v 1.41 2001/08/14 11:57:40 guenter Exp $ * * top-level xine functions * @@ -328,6 +328,9 @@ void xine_exit (xine_t *this) { this->status = XINE_QUIT; printf ("xine_exit: bye!\n"); + + profiler_print_results (); + } void xine_pause (xine_t *this) { @@ -414,6 +417,13 @@ xine_t *xine_init (vo_driver_t *vo, this->config = config; xine_debug = config->lookup_int (config, "xine_debug", 0); + /* + * set up profiler + */ + profiler_set_label (0, "video decoder "); + profiler_set_label (1, "audio decoder/output "); + profiler_set_label (2, "video output "); + /* * init lock */ -- cgit v1.2.3