Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

measure performance of a common-lisp program

I wrote a common-lisp program and it is slower than it needs to be. Now I want to analyse my code to see where my time is going. Are there any tools that people use?

like image 602
yilmazhuseyin Avatar asked Aug 26 '12 08:08

yilmazhuseyin


2 Answers

If you are using SLIME, there are a few profiling commands you could use besides time and implementation specific tools.

Use M-x slime-toggle-profile-fdefinition to (un)profile specific functions, M-x slime-profile-report to show the results, and M-x slime-profile-reset for resetting.

like image 58
danlei Avatar answered Sep 22 '22 16:09

danlei


If you're using SBCL, there is a neat statistical profiler available - http://www.sbcl.org/manual/Statistical-Profiler.html.

For simple measurements, you can use time, which is available on all Common Lisp implementations.

like image 45
Miron Brezuleanu Avatar answered Sep 21 '22 16:09

Miron Brezuleanu