mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 20:06:38 +02:00
📎 Add debug helpers for jvm/tap
This commit is contained in:
parent
036bf84ecd
commit
26f4082b5f
3 changed files with 59 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns user
|
||||
(:require
|
||||
[app.common.data :as d]
|
||||
[app.common.debug :as debug]
|
||||
[app.common.exceptions :as ex]
|
||||
[app.common.files.helpers :as cfh]
|
||||
[app.common.fressian :as fres]
|
||||
|
@ -55,8 +56,12 @@
|
|||
[promesa.exec :as px]))
|
||||
|
||||
(repl/disable-reload! (find-ns 'integrant.core))
|
||||
(repl/disable-reload! (find-ns 'app.common.debug))
|
||||
|
||||
(set! *warn-on-reflection* true)
|
||||
|
||||
(add-tap #'debug/tap-handler)
|
||||
|
||||
;; --- Benchmarking Tools
|
||||
|
||||
(defmacro run-quick-bench
|
||||
|
@ -132,12 +137,6 @@
|
|||
;; :v6 v6
|
||||
;; }])))
|
||||
|
||||
(defonce debug-tap
|
||||
(do
|
||||
(add-tap #(locking debug-tap
|
||||
(prn "tap debug:" %)))
|
||||
1))
|
||||
|
||||
|
||||
(defn calculate-frames
|
||||
[{:keys [data]}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue