mpv/common
wm4 fd3caa264e stats: some more performance graphs
Add an infrastructure for collecting performance-related data, use it in
some places. Add rendering of them to stats.lua.

There were two main goals: minimal impact on the normal code and normal
playback. So all these stats_* function calls either happen only during
initialization, or return immediately if no stats collection is going
on. That's why it does this lazily adding of stats entries etc. (a first
iteration made each stats entry an API thing, instead of just a single
stats_ctx, but I thought that was getting too intrusive in the "normal"
code, even if everything gets worse inside of stats.c).

You could get most of this information from various profilers (including
the extremely primitive --dump-stats thing in mpv), but this makes it
easier to see the most important information at once (at least in
theory), partially because we know best about the context of various
things.

Not very happy with this. It's all pretty primitive and dumb. At this
point I just wanted to get over with it, without necessarily having to
revisit it later, but with having my stupid statistics.

Somehow the code feels terrible. There are a lot of meh decisions in
there that could be better or worse (but mostly could be better), and it
just sucks but it's also trivial and uninteresting and does the job. I
guess I hate programming. It's so tedious and the result is always shit.
Anyway, enjoy.
2020-04-09 00:33:38 +02:00
..
av_common.c demux: use no overlapping packets for lossless audio 2019-09-19 20:37:04 +02:00
av_common.h demux: use no overlapping packets for lossless audio 2019-09-19 20:37:04 +02:00
av_log.c player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
av_log.h player: rearrange libav* library check 2020-03-08 19:38:10 +01:00
codecs.c codecs: remove unused family field 2018-02-01 10:21:55 +01:00
codecs.h codecs: remove unused family field 2018-02-01 10:21:55 +01:00
common.c common: add a helper to round up to next power of 2 2019-11-06 21:35:49 +01:00
common.h common: add a helper to round up to next power of 2 2019-11-06 21:35:49 +01:00
encode.h encode: get rid of the output packet queue 2018-05-03 01:08:44 +03:00
encode_lavc.c encode: fix occasional init crash due to initialization order issues 2020-03-22 21:08:44 +01:00
encode_lavc.h encode: restore audio muxer timebase use 2020-03-22 13:06:59 +01:00
global.h stats: some more performance graphs 2020-04-09 00:33:38 +02:00
msg.c msg: slightly improve --msg-time output 2020-02-14 16:12:37 +01:00
msg.h msg: try to document purpose of log levels better 2019-11-07 22:53:13 +01:00
msg_control.h msg: make --log-file buffered through a thread 2020-01-29 23:34:59 +01:00
playlist.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
playlist.h client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
recorder.c Remove remains of Libav compatibility 2020-02-16 15:14:55 +01:00
recorder.h recorder: don't use a magic index for mp_recorder_get_sink() 2019-09-29 01:41:19 +02:00
stats.c stats: some more performance graphs 2020-04-09 00:33:38 +02:00
stats.h stats: some more performance graphs 2020-04-09 00:33:38 +02:00
tags.c demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
tags.h demux: support for some kinds of timed metadata 2018-04-18 01:17:42 +03:00
version.c build: move copyright statement to a shared location 2018-01-01 21:05:09 +00:00