Skip to content

Commit cf4627d

Browse files
[processing] Store :total-samples in dense profile instead of meta
1 parent a7d0b90 commit cf4627d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/clj_async_profiler/core.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
dense-profile options false))
172172
(swap! results/file->metadata assoc flamegraph-file
173173
{:stacks-file stacks-file
174-
:samples (:total-samples (meta dense-profile))})
174+
:samples (:total-samples dense-profile)})
175175
flamegraph-file))
176176
(alter-meta! #'generate-flamegraph update :doc format stop-options-docstring)
177177

src/clj_async_profiler/post_processing.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
(run! (fn [[k v]] (aset id->frame-arr v k)) frame->id-map)
8888
(cond-> {:stacks (vec acc)
8989
:id->frame (vec id->frame-arr)}
90-
count-total-samples? (with-meta {:total-samples (aget total-samples 0)}))))
90+
count-total-samples? (assoc :total-samples (aget total-samples 0)))))
9191

9292
(defn read-raw-profile-file-to-dense-profile
9393
([file] (read-raw-profile-file-to-dense-profile file identity))

0 commit comments

Comments
 (0)