[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU EMACS PERFORMANCE PROFILING
From: |
Emanuel Berg |
Subject: |
Re: GNU EMACS PERFORMANCE PROFILING |
Date: |
Wed, 01 Jul 2015 19:31:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
joseph.koziatek@dowjones.com writes:
> Is there some kind of performance profiler in
> Gnu Emacs? ...
>
> Thanks In Advanced
Ha! Advanced stuff is indeed what is required.
Use this. It isn't mine - see the URL for credits.
(defmacro measure-time (&rest body)
"Measure and return the running time of the code block.
Not mine: http://nullprogram.com/blog/2009/05/28/"
(declare (indent defun))
(let ((start (make-symbol "start")))
`(let ((,start (float-time)))
,@body
(- (float-time) ,start))))
--
underground experts united
http://user.it.uu.se/~embe8573