[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs b0bc866a7b 218/472: Measure tick time during repla
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs b0bc866a7b 218/472: Measure tick time during replay (#122) |
Date: |
Thu, 6 Jan 2022 21:59:26 -0500 (EST) |
branch: elpa/pacmacs
commit b0bc866a7bb05bd40d53cac7419db02ef1f765be
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Measure tick time during replay (#122)
---
pacmacs-utils.el | 6 ++++++
tools/it-recorder.el | 9 +++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/pacmacs-utils.el b/pacmacs-utils.el
index eccf32542f..2c14345a2f 100644
--- a/pacmacs-utils.el
+++ b/pacmacs-utils.el
@@ -76,6 +76,12 @@ side-effects."
(when (string-match "\\(map[0-9]+\\)\\.txt" filename)
(match-string 1 filename)))
+(defmacro pacmacs--measure-time (&rest body)
+ "Measure the time it takes to evaluate BODY."
+ `(let ((time (current-time)))
+ ,@body
+ (float-time (time-since time))))
+
(provide 'pacmacs-utils)
;;; pacmacs.el ends here
diff --git a/tools/it-recorder.el b/tools/it-recorder.el
index f96611e992..8570a505ac 100644
--- a/tools/it-recorder.el
+++ b/tools/it-recorder.el
@@ -6,6 +6,7 @@
(defvar pacmacs--tick-counter 0)
(defvar pacmacs--recorded-actions nil)
+(defvar pacmacs--tick-times nil)
(defun pacmacs--record-action (action-name)
(add-to-list 'pacmacs--recorded-actions
@@ -56,7 +57,10 @@
(defun pacmacs-replay-tick ()
(cl-incf pacmacs--tick-counter)
- (pacmacs-tick)
+
+ (add-to-list 'pacmacs--tick-times
+ (pacmacs--measure-time
+ (pacmacs-tick)))
(if (not pacmacs--recorded-actions)
(pacmacs-quit)
@@ -83,4 +87,5 @@
(pacmacs-mode)
(setq pacmacs--recorded-actions (pacmacs--load-test-case filename))
- (setq pacmacs--tick-counter 0))
+ (setq pacmacs--tick-counter 0)
+ (setq pacmacs--tick-times nil))
- [nongnu] elpa/pacmacs e44bade6bf 087/472: Fix lambda expressions (#68), (continued)
- [nongnu] elpa/pacmacs e44bade6bf 087/472: Fix lambda expressions (#68), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2dac90bc61 092/472: Merge branch 'entire-code-coverage-70'. Close #70, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2fdeb1dbdf 188/472: Try to remove compilation step (#124), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a8bbb61bf8 189/472: Try to remove elcs after the compilation (#124), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 7729f08230 196/472: Rename render-board to object-board (#126), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs cede2ffb48 202/472: Optimize object look up (#126):, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9e29a7aa19 207/472: Add information about cask install., ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c6ddeab3f2 215/472: Roughly implement it replayer (#122), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 17a82dffec 205/472: Add UT for object-type-at-p, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ce03d91967 227/472: Introduce xbm flip bit hack (#133), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b0bc866a7b 218/472: Measure tick time during replay (#122),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 6f55a2df10 236/472: Add UT for pacmacs--put-bits-dot function (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 48dacba354 238/472: Refactor wall generator with bar functions (#131), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 62bcd78913 243/472: Refactor possible ways functions (#131):, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c2303269c0 249/472: Drop XBM support for empty cells (#141), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0f403095f0 265/472: Update README after repo transferring (#140), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 169cd54064 269/472: Add UT for pacmacs--bit-list-to-integer, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 769414fae0 274/472: Extend pacmacs--normalize-wall-bits UT, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs d8a7998192 277/472: Extract `cask install` to separate step in README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 614a98ccc7 278/472: Cleanup README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fa6eca1731 284/472: Introduce list for terrified ghost objects (#153), ELPA Syncer, 2022/01/06