We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15c7d7b + 917a74e commit e789dadCopy full SHA for e789dad
CHANGELOG.md
@@ -5,6 +5,7 @@
5
## Fixed
6
7
- Fix beholder watch functionality that would cause a NullPointerException earlier.
8
+- Resolve reflective calls in profiling plugin.
9
10
## Changed
11
src/kaocha/plugin/profiling.clj
@@ -7,6 +7,8 @@
(:import java.time.Instant
java.time.temporal.ChronoUnit))
+(set! *warn-on-reflection* true)
+
12
(spec/def ::start #(instance? Instant %))
13
(spec/def ::duration nat-int?)
14
(spec/def ::profiling? boolean?)
@@ -18,7 +20,7 @@
18
20
(defn stop [testable]
19
21
(cond-> testable
22
(::start testable)
- (assoc ::duration (.until (::start testable)
23
+ (assoc ::duration (.until ^Instant (::start testable)
24
(Instant/now)
25
ChronoUnit/NANOS))))
26
0 commit comments