From: Jackson Ray Hamilton Date: Mon, 5 Jan 2015 06:15:43 +0000 (-0800) Subject: Save benchmark logs to an untracked directory. X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/21cc6c6174fd6b64265059147b35aed4753ae7c8 Save benchmark logs to an untracked directory. --- diff --git a/.gitignore b/.gitignore index 5282559b3..d9c77ef68 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ *.elc -*.log +/benchmark/logs/ diff --git a/Makefile b/Makefile index c50712bcc..2b6569c9e 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 707188f0b..6d66f18c9 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)