Skip to content

Commit

Permalink
Make timeline display fn unwinds
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Feb 1, 2024
1 parent 3e9dc23 commit 4692acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src-dbg/flow_storm/debugger/ui/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
(.setAlignment Pos/CENTER_LEFT))
format-exception-item (fn [{:keys [idx fn-ns fn-name ex-type]}]
(format "%d - %s/%s %s" idx fn-ns fn-name ex-type))
exceptions-combo (combo-box {:on-change-fn (fn [_ {:keys [flow-id thread-id idx ex-message] :as to-item}]
exceptions-combo (combo-box {:on-change-fn (fn [_ {:keys [flow-id thread-id idx] :as to-item}]
(when to-item
(flows-screen/goto-location {:flow-id flow-id
:thread-id thread-id
Expand Down
6 changes: 4 additions & 2 deletions src-inst/flow_storm/runtime/indexes/thread_registry.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(:require [flow-storm.runtime.indexes.protocols :as index-protos]
[flow-storm.runtime.indexes.utils :refer [int-map make-mutable-list ml-add ml-clear]]
[flow-storm.runtime.types.fn-call-trace :as fn-call-trace :refer [fn-call-trace?]]
[flow-storm.runtime.types.fn-return-trace :as fn-return-trace :refer [fn-end-trace?]]
[flow-storm.runtime.types.fn-return-trace :as fn-return-trace :refer [fn-end-trace? fn-return-trace?]]
[flow-storm.runtime.types.expr-trace :as expr-trace :refer [expr-trace?]]
[clojure.string :as str]
[hansel.utils :as hansel-utils])
Expand Down Expand Up @@ -153,7 +153,9 @@
(fn-end-trace? entry)
(recur r
(update threads-stacks tid pop)
(conj! timeline-ret {:type :fn-return
(conj! timeline-ret {:type (if (fn-return-trace? entry)
:fn-return
:fn-unwind)
:flow-id fid
:thread-id tid
:thread-timeline-idx tidx}))
Expand Down

0 comments on commit 4692acf

Please sign in to comment.