[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic ATT measuring |
Date: |
Thu, 6 Jan 2022 21:59:38 -0500 (EST) |
branch: elpa/pacmacs
commit 3e25c675905b3906935f04a9c506f8784a67c532
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Add script for semi-automatic ATT measuring
---
tools/README.md | 5 +++++
tools/att.el | 17 +++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/tools/README.md b/tools/README.md
index b4dab9e5d6..299e60f774 100644
--- a/tools/README.md
+++ b/tools/README.md
@@ -2,6 +2,11 @@
Tools that help to develop the game
+## att.el ##
+
+Runs `./it-cases/it-case03.el` it case using `pacmacs-rr` module and
+outputs the ATT to `./att.txt` file.
+
## compile.el ##
Compiles all the source code, treats warnings as errors and exits with
diff --git a/tools/att.el b/tools/att.el
new file mode 100644
index 0000000000..8a3902c68e
--- /dev/null
+++ b/tools/att.el
@@ -0,0 +1,17 @@
+(add-to-list 'load-path default-directory)
+(add-to-list 'load-path (concat default-directory "/tools/"))
+
+(require 'pacmacs-rr)
+(require 'f)
+
+(defconst att-result-file-path "./att.txt")
+(defvar att-it-case-path "./it-cases/it-case03.el")
+
+(defun att-replayer-finished ()
+ (f-write (format "Average Tick Time: %fms" (pacmacs--average-tick-time))
+ 'utf-8
+ att--result-file-path)
+ (kill-emacs 0))
+
+(add-hook 'pacmacs-replay-finished-hook #'performance-replayer-finished)
+(pacmacs--start-it-replayer att-it-case-path)
- [nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pills (#81), (continued)
- [nongnu] elpa/pacmacs 69437be130 259/472: Extra points for eating big pills (#81), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4ef8e6cdb4 260/472: Merge branch 'big-pills-81'. Close #81, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 59685e56a4 261/472: Clean elc in `tools/compile.el` script. Close #147, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 31de569656 273/472: Extend pacmacs--normalize-wall-bits UT, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4624b8a64c 307/472: Rename ghost-blinking-threshold cons (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs af0fe59457 309/472: Fix FIXME regarding Emacs 24.3 support (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0326ad4081 318/472: Add module for working with vectors (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 84598f8f20 328/472: UT for pacmacs--load-next-level, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4862789072 335/472: Terrify/unterrify ghost without losing state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 1e4d6cd8b7 340/472: UT for terrified-ghost function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 3e25c67590 345/472: Add script for semi-automatic ATT measuring,
ELPA Syncer <=
- [nongnu] elpa/pacmacs 70d381a0ca 362/472: UT for terrify-all-ghosts (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs dec42c790d 374/472: Update the screenshots, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 10705b45c5 376/472: Rename bits-to-xpm to wall-tile-to-xpm (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a5583b6255 377/472: Fix wall-tile-to-xpm UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 93f031ae4e 382/472: Fix create-wall-tile UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2c7e23070b 380/472: Fix put-vertical-bar UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs dc14097468 400/472: Add emacs mode for game over (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 98816141d5 398/472: Merge pull request #189 from codingteam/remove-make-terrified-ghost, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 30442797d3 404/472: Add consts for nick and table sizes (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0eeb82ebc9 425/472: Merge pull request #193 from codingteam/rework-nick-after-death-134, ELPA Syncer, 2022/01/06