]> git.sesse.net Git - vlc/commit
Add a timing facility (Refs:#473)
authorClément Stenac <zorglub@videolan.org>
Tue, 24 Jan 2006 22:42:16 +0000 (22:42 +0000)
committerClément Stenac <zorglub@videolan.org>
Tue, 24 Jan 2006 22:42:16 +0000 (22:42 +0000)
commitc8f73cd605ac12d98f39edb6b0fe65ddc43dc5dc
tree54c33625731f90d9d3cf7043bf3e4efd6aeed033
parent822000a1057ddfcf707ae4305aac08c1acd00f1e
Add a timing facility (Refs:#473)

It is only available in debug mode.

To use: stats_TimerStart( vlc_object_t* , char *name );
stats_TimerStop( vlc_object_t *, char *name );

stats_TimerDump( vlc_object_t* , char *name ) will print a line

TIMER name : last_time - total_time / number of samples (average time)

stats_TimersDumpAll is not implemented yet
include/vlc_common.h
include/vlc_messages.h
include/vlc_symbols.h
src/misc/stats.c
src/playlist/playlist.c