[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

profile-dotemacs.el - Profile your Emacs init file

From: David Engster
Subject: profile-dotemacs.el - Profile your Emacs init file
Date: Wed, 16 Jun 2010 19:19:10 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

This file lets you easily profile your Emacs init file (or any other
script-like Emacs Lisp file, for that matter).

It will go over all sexp’s (balanced expressions) in the file and run
them through ‘benchmark-run’. It will then show the file with overlays
applied in a way that let you easily find out which sexp’s take the most
time. Since time is relative, it’s not the absolute value that counts
but the percentage of the total running time.


Start emacs as follows:

emacs -Q -l PATH/profile-dotemacs.el -f profile-dotemacs

with PATH being the path to where this file resides.

Further information (including screenshot) is on the EmacsWiki:

Attachment: profile-dotemacs.el
Description: application/emacs-lisp

reply via email to

[Prev in Thread] Current Thread [Next in Thread]