Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riscy/process-log
Maintain a running log of subprocesses
https://github.com/riscy/process-log
Last synced: 16 days ago
JSON representation
Maintain a running log of subprocesses
- Host: GitHub
- URL: https://github.com/riscy/process-log
- Owner: riscy
- License: gpl-3.0
- Created: 2019-08-29T02:06:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-04T19:56:42.000Z (over 2 years ago)
- Last Synced: 2024-10-31T08:11:57.987Z (2 months ago)
- Language: Emacs Lisp
- Size: 17.6 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: process-log
#+OPTIONS: toc:3 author:t creator:nil num:nil
#+AUTHOR: Chris Rayner
#+EMAIL: [email protected]A minor mode to keep a log of processes invoked by Emacs and Emacs packages.
This can be useful for benchmarking, debugging, auditing, or just for
curiosity's sake. Note this may affect the performance of some packages.To use process-log, add the following to your =.emacs=:
#+begin_src elisp
(add-to-list 'load-path "~/path/to/process-log/")
(require 'process-log)
(process-log-mode 1) ; start logging
#+end_srcThis creates a buffer called =*process-log*=, which resembles the following:
#+begin_src change-log
2020-04-19 18:50:22 gutter git --no-pager -c diff.autore...
2020-04-19 18:50:25 vc git status --porcelain -z --u...
2020-04-19 18:50:25 flychk Emacs -Q --batch --eval (prog...
2020-04-19 18:51:57 magit git --no-pager --literal-path...
2020-04-19 18:56:24 misc open https://learning.oreilly...
#+end_src
where each row is comprised of:
- a timestamp
- the "blame" token indicating which package invoked the process;
the =help-echo= (mouseover) shows 20 relevant backtrace frames
- the binary, whose full path is shown in its =help-echo=
- the binary's full argument list