%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/emacs-lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/emacs-lisp/trace.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\316\317%\207" [custom-declare-group trace nil "Tracing facility for Emacs Lisp functions." :prefix "trace-" :group lisp custom-declare-variable trace-buffer funcall function #[0 "\300\207" [#1="*trace-output*"] 1 #1#] "Trace output will by default go to that buffer." :type string] 8) (defvar trace-level 0) (defvar trace-advice-name 'trace-function\ ) (defvar trace-separator (byte-code "\300\301\302\303\304\"\"\207" [format "%s\n" make-string 70 61] 5)) #@51 If non-nil, all tracing is temporarily inhibited. (defvar inhibit-trace nil (#$ . 942)) #@131 Helper function to get internal values. You can call this function to add internal values in the trace buffer. (fn &rest VALUES) (defalias 'trace-values #[128 "?\205 r q\210db\210\303\304\n\305$c)\207" [inhibit-trace trace-buffer trace-level trace-entry-message trace-values ""] 6 (#$ . 1037)]) #@271 Generate a string that describes that FUNCTION has been entered. LEVEL is the trace level, ARGS is the list of arguments passed to FUNCTION, and CONTEXT is a string describing the dynamic context (e.g. values of some global variables). (fn FUNCTION LEVEL ARGS CONTEXT) (defalias 'trace-entry-message #[1028 "\301\302\303\304\305\306S\307\"\310#\311V\203 \310\202 \312B&)\207" [print-circle t format "%s%s%d -> %S%s\n" mapconcat char-to-string make-string 124 " " 1 ""] 11 (#$ . 1343)]) #@250 Generate a string that describes that FUNCTION has exited. LEVEL is the trace level, VALUE value returned by FUNCTION, and CONTEXT is a string describing the dynamic context (e.g. values of some global variables). (fn FUNCTION LEVEL VALUE CONTEXT) (defalias 'trace-exit-message #[1028 "\301\302\303\304\305\306S\307\"\310#\311V\203 \310\202 \312&)\207" [print-circle t format "%s%s%d <- %s: %S%s\n" mapconcat char-to-string make-string 124 " " 1 ""] 12 (#$ . 1852)]) (defvar trace--timer nil) #@12 (fn BUF) (defalias 'trace--display-buffer #[257 "\206 \301\302\"?\205 \303\304\305\306\304\307\310\311!\312\"\313$#\211\207" [trace--timer get-buffer-window visible run-with-timer 0 nil make-byte-code "\302\303\300\302\304#\207" vconcat vector [trace--timer nil display-buffer 0] 4] 10 (#$ . 2367)]) #@369 Build the piece of advice to be added to trace FUNCTION. FUNCTION is the name of the traced function. BUFFER is the buffer where the trace should be printed. BACKGROUND if nil means to display BUFFER. CONTEXT if non-nil should be a function that returns extra info that should be printed along with the arguments in the trace. (fn FUNCTION BUFFER BACKGROUND CONTEXT) (defalias 'trace-make-advice #[1028 "\300\301\302\303\304$\305\"\306\307%\207" [make-byte-code 385 "\fT\306\301!\307\303 \204@ rq\210\310\311!\210\312 \302\204) \313!\210db\210\f\314U\2036 c\210\315\300\f$c\210)\307C\316\317\320\321\322\300\302\303$\323\"\324$\216\211\325\"C\240\210)\211\242@\262+\207" vconcat vector [trace-level deactivate-mark get-buffer-create nil make-local-variable window-point-insertion-type t trace--display-buffer 1 trace-entry-message make-byte-code 0 "\f?\205, \302 r q\210\301\204 \306 !\210db\210\307\300 \303\242\203% \303\242@\202&