diff options
| author | Michael Albinus | 2021-05-07 13:04:28 +0200 |
|---|---|---|
| committer | Michael Albinus | 2021-05-07 13:04:28 +0200 |
| commit | 70bfcbcdd328775d0fcac5ec06b797e227fc032a (patch) | |
| tree | 20fb2b7bd138022b9bf1cb50fc264a74119443d9 /doc | |
| parent | 704755a568300985caa9e143f46f17d364e5eda9 (diff) | |
| download | emacs-70bfcbcdd328775d0fcac5ec06b797e227fc032a.tar.gz emacs-70bfcbcdd328775d0fcac5ec06b797e227fc032a.zip | |
Tune Tramp traces
* doc/misc/tramp.texi (Traces and Profiles): Describe call traces.
* lisp/net/tramp-compat.el: Add `tramp-suppress-trace' property for all
functions.
* lisp/net/tramp.el (tramp-verbose): Adapt docstring.
(tramp-file-name-method, tramp-file-name-user)
(tramp-file-name-domain, tramp-file-name-host)
(tramp-file-name-port, tramp-file-name-localname)
(tramp-file-name-hop, tramp-file-name-user-domain)
(tramp-file-name-host-port, tramp-file-name-port-or-default)
(tramp-tramp-file-p, tramp-find-method, tramp-find-user)
(tramp-find-host, tramp-dissect-file-name)
(tramp-dissect-hop-name, tramp-debug-buffer-name)
(tramp-debug-outline-level, tramp-get-debug-buffer)
(tramp-get-debug-file-name, tramp-read-passwd)
(tramp-clear-passwd): Add `tramp-suppress-trace' property.
(tramp-debug-message): Activate call traces.
* test/lisp/net/tramp-tests.el (tramp--test-instrument-test-case): Simplify.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/tramp.texi | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index ebfc14d9368..47beb90e6c6 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -5336,6 +5336,7 @@ The verbosity levels are | |||
| 5336 | @*@indent @w{ 8} connection properties | 5336 | @*@indent @w{ 8} connection properties |
| 5337 | @*@indent @w{ 9} test commands | 5337 | @*@indent @w{ 9} test commands |
| 5338 | @*@indent @w{10} traces (huge) | 5338 | @*@indent @w{10} traces (huge) |
| 5339 | @*@indent @w{11} call traces (maintainer only) | ||
| 5339 | 5340 | ||
| 5340 | With @code{tramp-verbose} greater than or equal to 4, messages are | 5341 | With @code{tramp-verbose} greater than or equal to 4, messages are |
| 5341 | also written to a @value{tramp} debug buffer. Such debug buffers are | 5342 | also written to a @value{tramp} debug buffer. Such debug buffers are |
| @@ -5384,21 +5385,8 @@ The debug buffer is written as a file in your | |||
| 5384 | this option with care, because it could decrease the performance of | 5385 | this option with care, because it could decrease the performance of |
| 5385 | @value{tramp} actions. | 5386 | @value{tramp} actions. |
| 5386 | 5387 | ||
| 5387 | To enable stepping through @value{tramp} function call traces, they | 5388 | If @code{tramp-verbose} is greater than or equal to 11, @value{tramp} |
| 5388 | have to be specifically enabled as shown in this code: | 5389 | function call traces are written to the buffer @file{*trace-output*}. |
| 5389 | |||
| 5390 | @lisp | ||
| 5391 | @group | ||
| 5392 | (require 'trace) | ||
| 5393 | (dolist (elt (all-completions "tramp-" obarray 'functionp)) | ||
| 5394 | (trace-function-background (intern elt))) | ||
| 5395 | (untrace-function 'tramp-read-passwd) | ||
| 5396 | @end group | ||
| 5397 | @end lisp | ||
| 5398 | |||
| 5399 | The buffer @file{*trace-output*} contains the output from the function | ||
| 5400 | call traces. Disable @code{tramp-read-passwd} to stop password | ||
| 5401 | strings from being written to @file{*trace-output*}. | ||
| 5402 | 5390 | ||
| 5403 | 5391 | ||
| 5404 | @node GNU Free Documentation License | 5392 | @node GNU Free Documentation License |