Merge branch 'adamschmideg-util-to-cljc' into master

pull/1177/head
Tienson Qin 2021-01-19 13:59:34 +08:00
commit 36016a2dc7
4 changed files with 1112 additions and 1036 deletions

View File

@ -1,13 +0,0 @@
(ns frontend.util)
;; Copied from https://github.com/tonsky/datascript-todo
(defmacro profile [k & body]
`(if goog.DEBUG
(let [k# ~k]
(.time js/console k#)
(let [res# (do ~@body)]
(.timeEnd js/console k#)
res#))
(do ~@body)))
;; TODO: profile and profileEnd

1112
src/main/frontend/util.cljc Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff