aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorTomohiro Matsuyama2012-08-22 16:08:36 +0900
committerTomohiro Matsuyama2012-08-22 16:08:36 +0900
commita4924b14919a427bf14913608b97d14a8c8e221f (patch)
tree3d241b91c8dbd445aa3ad3c665a1ce024087962f /lisp
parentb02baf7f7ce532bbb6cb51ebff63a208bf9fb882 (diff)
downloademacs-a4924b14919a427bf14913608b97d14a8c8e221f.tar.gz
emacs-a4924b14919a427bf14913608b97d14a8c8e221f.zip
* profiler.el (profiler-start): Change mode spec.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/profiler.el6
2 files changed, 4 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6c8a4f9ec84..366380b4ec4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
12012-08-22 Tomohiro Matsuyama <tomo@cx4a.org> 12012-08-22 Tomohiro Matsuyama <tomo@cx4a.org>
2 2
3 * profiler.el: Switch to cl-lib. 3 * profiler.el: Switch to cl-lib.
4 (profiler-start): Change mode spec.
4 5
52012-08-22 Daiki Ueno <ueno@unixuser.org> 62012-08-22 Daiki Ueno <ueno@unixuser.org>
6 7
diff --git a/lisp/profiler.el b/lisp/profiler.el
index 8428b38c586..db2d0eb461a 100644
--- a/lisp/profiler.el
+++ b/lisp/profiler.el
@@ -538,16 +538,16 @@ otherwise collapse the entry."
538;;;###autoload 538;;;###autoload
539(defun profiler-start (mode) 539(defun profiler-start (mode)
540 (interactive 540 (interactive
541 (list (intern (completing-read "Mode: " '("cpu" "memory" "cpu&memory") 541 (list (intern (completing-read "Mode: " '("cpu" "mem" "cpu+mem")
542 nil t nil nil "cpu")))) 542 nil t nil nil "cpu"))))
543 (cl-ecase mode 543 (cl-ecase mode
544 (cpu 544 (cpu
545 (sample-profiler-start profiler-sample-interval) 545 (sample-profiler-start profiler-sample-interval)
546 (message "CPU profiler started")) 546 (message "CPU profiler started"))
547 (memory 547 (mem
548 (memory-profiler-start) 548 (memory-profiler-start)
549 (message "Memory profiler started")) 549 (message "Memory profiler started"))
550 (cpu&memory 550 (cpu+mem
551 (sample-profiler-start profiler-sample-interval) 551 (sample-profiler-start profiler-sample-interval)
552 (memory-profiler-start) 552 (memory-profiler-start)
553 (message "CPU and memory profiler started")))) 553 (message "CPU and memory profiler started"))))