diff options
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/interface-changes.rst | 2 | ||||
-rw-r--r-- | DOCS/man/options.rst | 6 | ||||
-rw-r--r-- | DOCS/man/stats.rst | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 708cfa776e..be331cb6c6 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -107,6 +107,8 @@ Interface changes - rename `--screenshot-directory` to `--screenshot-dir` - rename `--watch-later-directory` to `--watch-later-dir` - rename `--play-dir` to `--play-direction` + - `--js-memory-report` is now used for enabling memory reporting for javascript + scripts --- mpv 0.36.0 --- - add `--target-contrast` - Target luminance value is now also applied when ICC profile is used. diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 49832a4804..5f986f4126 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -993,6 +993,12 @@ Program Behavior - ``--ytdl-raw-options=proxy=[http://127.0.0.1:3128]`` - ``--ytdl-raw-options-append=proxy=http://127.0.0.1:3128`` +``--js-memory-report=<yes|no>`` + Enable memory reporting for javascript scripts in the stats overlay. + This is disabled by default because it has an overhead and increases + memory usage. This option will only work if it is enabled before mpv is + started. + ``--load-stats-overlay=<yes|no>`` Enable the builtin script that shows useful playback information on a key binding (default: yes). By default, the ``i`` key is used (``I`` to make diff --git a/DOCS/man/stats.rst b/DOCS/man/stats.rst index fc6ea37c46..88238bcf93 100644 --- a/DOCS/man/stats.rst +++ b/DOCS/man/stats.rst @@ -225,8 +225,8 @@ are missing. Memory usage is approximate and does not reflect internal fragmentation. JS scripts memory reporting is disabled by default because collecting the data -at the JS side has an overhead. It can be enabled by exporting the env var -``MPV_LEAK_REPORT=1`` before starting mpv, and will increase JS memory usage. +at the JS side has an overhead and will increase memory usage. It can be +enabled by setting the ``--js-memory-report`` option before starting mpv. If entries have ``/time`` and ``/cpu`` variants, the former gives the real time (monotonic clock), while the latter the thread CPU time (only if the |