2012-08-22 Tomohiro Matsuyama <tomo@cx4a.org>
* profiler.el: Switch to cl-lib.
+ (profiler-start): Change mode spec.
2012-08-22 Daiki Ueno <ueno@unixuser.org>
;;;###autoload
(defun profiler-start (mode)
(interactive
- (list (intern (completing-read "Mode: " '("cpu" "memory" "cpu&memory")
+ (list (intern (completing-read "Mode: " '("cpu" "mem" "cpu+mem")
nil t nil nil "cpu"))))
(cl-ecase mode
(cpu
(sample-profiler-start profiler-sample-interval)
(message "CPU profiler started"))
- (memory
+ (mem
(memory-profiler-start)
(message "Memory profiler started"))
- (cpu&memory
+ (cpu+mem
(sample-profiler-start profiler-sample-interval)
(memory-profiler-start)
(message "CPU and memory profiler started"))))