[vlc-commits] Remove write-only timer statistics

Rémi Denis-Courmont git at videolan.org
Tue Nov 29 18:18:09 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 29 18:59:18 2011 +0200| [e3a897cf11f768a9b9bf3b3fab9a1b8bc82e9235] | committer: Rémi Denis-Courmont

Remove write-only timer statistics

The implementation was slow/inefficient. This is really silly for
_performance_ counters. And contrary to the other statistics, nothing
actually reads them, except for debug logs.

If you really want debug-only performance timers, use this:

    mtime_t start, end;

    start = mdate();
    compute_decimals_of_Pi(100);
    end = mdate();
    msg_Dbg(obj, "spent %"PRIu64" us computing", end - start);

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e3a897cf11f768a9b9bf3b3fab9a1b8bc82e9235
---

 include/vlc_messages.h                    |   31 -----
 modules/gui/skins2/controls/ctrl_tree.cpp |    7 -
 modules/stream_out/transcode/audio.c      |   21 ---
 modules/stream_out/transcode/video.c      |   28 ----
 src/input/input.c                         |   11 --
 src/libvlc.c                              |    2 -
 src/libvlccore.sym                        |    6 -
 src/misc/stats.c                          |  193 -----------------------------
 src/modules/modules.c                     |    9 --
 src/playlist/loadsave.c                   |    4 -
 src/playlist/preparser.c                  |    4 -
 src/playlist/thread.c                     |    3 -
 12 files changed, 0 insertions(+), 319 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=e3a897cf11f768a9b9bf3b3fab9a1b8bc82e9235


More information about the vlc-commits mailing list