emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 21cc6c6 200/271: Save benchmark logs to an untracked direc


From: Jackson Ray Hamilton
Subject: [elpa] master 21cc6c6 200/271: Save benchmark logs to an untracked directory.
Date: Thu, 05 Feb 2015 18:31:11 +0000

branch: master
commit 21cc6c6174fd6b64265059147b35aed4753ae7c8
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Save benchmark logs to an untracked directory.
---
 .gitignore                              |    2 +-
 Makefile                                |    2 +-
 benchmark/context-coloring-benchmark.el |    3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5282559..d9c77ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 *.elc
-*.log
+/benchmark/logs/
diff --git a/Makefile b/Makefile
index c50712b..2b6569c 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ compile:
        -f batch-byte-compile *.el lib/*.el
 
 clean:
-       rm -f *.log benchmark/*.log *.elc lib/*.elc
+       rm -f *.elc lib/*.elc
 
 test:
        ${EMACS} -Q -batch \
diff --git a/benchmark/context-coloring-benchmark.el 
b/benchmark/context-coloring-benchmark.el
index 707188f..6d66f18 100644
--- a/benchmark/context-coloring-benchmark.el
+++ b/benchmark/context-coloring-benchmark.el
@@ -15,6 +15,7 @@
     (with-temp-buffer
       (insert "\n")
       (append-to-buffer results-buffer (point-min) (point-max))))
+  (make-directory (context-coloring-benchmark-resolve-path "./logs") t)
   (append-to-file nil nil result-file))
 
 (defun context-coloring-benchmark-next-tick (function)
@@ -34,7 +35,7 @@
 (defun context-coloring-benchmark-async (title setup teardown fixtures 
callback)
   (funcall setup)
   (let ((result-file (context-coloring-benchmark-resolve-path
-                      (concat "./results-" title "-" (format-time-string "%s") 
".log"))))
+                      (concat "./logs/results-" title "-" (format-time-string 
"%s") ".log"))))
     (context-coloring-benchmark-next
      fixtures
      (lambda (path next)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]