]> crepu.dev Git - config.git/blame - djavu-asus/elpa/elpy-20230803.1455/elpy-profile.elc
Actualizado el Readme
[config.git] / djavu-asus / elpa / elpy-20230803.1455 / elpy-profile.elc
CommitLineData
53e6db90
DC
1;ELC\1c\0\0\0
2;;; Compiled
3;;; in Emacs version 28.2
4;;; with all optimizations.
5
6
7
8#@38 Visualizer for elpy profile results.\1f
9(custom-declare-variable 'elpy-profile-visualizer "snakeviz" '(#$ . 84) :type '(choice (const :tag "Snakeviz" "snakeviz") (const :tag "RunSnakeRun" "runsnake") (const :tag "pyprof2calltree" "pyprof2calltree -k -i") (string :tag "Other")) :group 'elpy)
10#@66 Display the profile result FILE using `elpy-profile-visualizer'.\1f
11(defalias 'elpy-profile--display-profiling #[(file) "\304\b\305\306#@\307\304\b\305\306#A C\"\1a\e\310\v!\203$\0\311\312\v\313\314\313\n&\ 6\202(\0\315\316\v\"*\207" [elpy-profile-visualizer file args exec split-string " " t append executable-find apply call-process nil 0 message "Elpy profile visualizer '%s' not found"] 7 (#$ . 379)])
12#@24 Elpy profile sentinel.\1f
13(defalias 'elpy-profile--sentinel #[(process string) "\305\306\b\307\"!\306\b\302\"\306\b\301\"\19\1a\er\310q\210\311 \210)\f\312\230\204*\0\313\314\v\"\210\315\310!\2027\0\313\316\v\"\210 ?\2057\0\317\n!+\207" [process dont-display prof-file filename string file-name-nondirectory process-get file "*elpy-profile-log*" view-mode "finished\n" message "[%s] Profiling failed" display-buffer "[%s] Profiling succeeded" elpy-profile--display-profiling] 5 (#$ . 776)])
14#@232 Profile asynchronously FILE and display the result using
15`elpy-profile-visualizer'.
16
17If IN-DIR is non nil, profile result is saved in the same
18directory as the script.
19If DONT-DISPLAY is non nil, don't display the profile results.\1f
20(defalias 'elpy-profile--file #[(file &optional in-dir dont-display) "\3061\f\0\307\310!0\210\202\r\0\210\b\203\19\0\311 !\312P\202 \0\313\314\315\312#\260\ 1\1a\316\317 \"\e\f\320\321\322\n \257\ 6\1d\323\324\v\325\310\326\327\330\r&\b\1e\1e\331\332\333 !\"\210\334\ e\1e\302\n#\210\334\ e\1e\301 #\210\334\ e\1e\335\ e\1d#\210\n,\207" [in-dir file prof-file proc-name elpy-rpc-python-command proc-cmd (error) kill-buffer "*elpy-profile-log*" file-name-sans-extension ".profile" make-temp-file "elpy-profile-" nil format "elpy-profile-%s" "-m" "cProfile" "-o" make-process :name :buffer :sentinel elpy-profile--sentinel :command message "[%s] Profiling ..." file-name-nondirectory process-put dont-display proc] 9 (#$ . 1258)])
21#@267 Profile asynchronously the active region or the current buffer
22and display the result using `elpy-profile-visualizer'.
23
24If IN-DIR is non nil, profile result is saved in the same
25directory as the script.
26If DONT-DISPLAY is non nil, don't display the profile results.\1f
27(defalias 'elpy-profile-buffer-or-region #[(&optional in-dir dont-display) "\306 \18\307\310 !\19\311 \203\12\0\312 \202\13\0e\1a\311 \203\1e\0\313 \202\1f\0d\e\311 \203)\0\314\202*\0\315\1c\r\2037\0 \316\f\bR\202?\0\317\320\321\"\316\f\bR\1e\19\322\n\v\"\1e\1a\323\324\321\"\1e\er\ e\eq\210\325\216\ e\1ac\210\326ed\ e\19\327\321%\210+\330\ e\19\321\ e\1c#.\a\207" [file-name file-dir beg end tmp-file-prefix in-dir buffer-name file-name-directory buffer-file-name region-active-p region-beginning region-end "_region_" "" "/" make-temp-file "elpy-profile-" t python-shell-buffer-substring generate-new-buffer " *temp*" #[nil "\301\b!\205 \0\302\b!\207" [#1=#:temp-buffer buffer-name kill-buffer] 2] write-region nil elpy-profile--file tmp-file region #1# dont-display] 6 (#$ . 2185) "P"])
28(provide 'elpy-profile)