mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
📎 Add some utilities on user ns
This commit is contained in:
parent
89732d911b
commit
5cd0079e7f
1 changed files with 19 additions and 0 deletions
|
@ -10,6 +10,7 @@
|
||||||
[app.common.exceptions :as ex]
|
[app.common.exceptions :as ex]
|
||||||
[app.common.geom.matrix :as gmt]
|
[app.common.geom.matrix :as gmt]
|
||||||
[app.common.perf :as perf]
|
[app.common.perf :as perf]
|
||||||
|
[app.common.pprint :as pp]
|
||||||
[app.common.transit :as t]
|
[app.common.transit :as t]
|
||||||
[app.config :as cfg]
|
[app.config :as cfg]
|
||||||
[app.main :as main]
|
[app.main :as main]
|
||||||
|
@ -35,6 +36,24 @@
|
||||||
|
|
||||||
(defonce system nil)
|
(defonce system nil)
|
||||||
|
|
||||||
|
;; --- Benchmarking Tools
|
||||||
|
|
||||||
|
(defmacro run-quick-bench
|
||||||
|
[& exprs]
|
||||||
|
`(with-progress-reporting (quick-bench (do ~@exprs) :verbose)))
|
||||||
|
|
||||||
|
(defmacro run-quick-bench'
|
||||||
|
[& exprs]
|
||||||
|
`(quick-bench (do ~@exprs)))
|
||||||
|
|
||||||
|
(defmacro run-bench
|
||||||
|
[& exprs]
|
||||||
|
`(with-progress-reporting (bench (do ~@exprs) :verbose)))
|
||||||
|
|
||||||
|
(defmacro run-bench'
|
||||||
|
[& exprs]
|
||||||
|
`(bench (do ~@exprs)))
|
||||||
|
|
||||||
;; --- Development Stuff
|
;; --- Development Stuff
|
||||||
|
|
||||||
(defn- run-tests
|
(defn- run-tests
|
||||||
|
|
Loading…
Reference in a new issue