Skip to content

Commit

Permalink
Display trace values of linked probes as instance variable's trace
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeAtHPI committed Oct 6, 2023
1 parent fd09757 commit 17cac43
Show file tree
Hide file tree
Showing 29 changed files with 84 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ addProbe: aProbe
ifPresent: [:registeredProbes | registeredProbes add: aProbe]
ifAbsent: [ | k |
k := KeyedSet keyBlock: [ :each | each variableName ].
k add: aProbe.
nameToProbesDict at: aProbe assignedClassName put: k]

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ as yet unclassified
removeProbe: aProbe

nameToProbesDict at: aProbe assignedClassName
ifPresent: [:registeredProbes | registeredProbes remove: aProbe]
ifPresent: [:registeredProbes | registeredProbes remove: aProbe.
registeredProbes ifEmpty:
[nameToProbesDict removeKey: aProbe assignedClassName]]

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"clear" : "joabe 9/28/2023 12:59",
"default" : "joabe 9/28/2023 12:57" },
"instance" : {
"addProbe:" : "joabe 9/28/2023 15:50",
"addProbe:" : "joabe 10/5/2023 18:01",
"at:" : "joabe 9/28/2023 15:08",
"initialize" : "joabe 9/27/2023 16:33",
"nameToProbesDict" : "joabe 9/28/2023 12:59",
"removeProbe:" : "joabe 9/28/2023 15:47" } }
"removeProbe:" : "joabe 10/5/2023 17:47" } }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPAssertionValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"initialize" : "jb 12/7/2020 19:01",
"isAssertion" : "pre 11/18/2019 11:50",
"isProbe" : "pre 11/18/2019 12:31",
"newValuesMorphTracing:" : "joabe 7/1/2023 17:03",
"relevantTracesOf:do:" : "pre 5/3/2021 10:46",
"updateAssertionFieldsMorph" : "pre 2/22/2021 12:24",
"updateFrom:" : "joabe 7/1/2023 17:05" } }
"updateFrom:" : "joabe 7/1/2023 17:05",
"valuesMorphClass" : "joabe 10/6/2023 11:21" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPAssignmentValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"class" : {
},
"instance" : {
"updateExpressionMorphIfNecessary" : "pre 6/7/2021 16:37" } }
"updateExpressionMorphIfNecessary" : "pre 6/7/2021 16:37",
"valuesMorphClass" : "joabe 10/6/2023 11:21" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
accessing
linkedProbes

^ self annotation linkedProbes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
as yet unclassified
actions
removeButtonClicked

self annotation deleteLinkedProbes.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
updateExpressionMorphIfNecessary

"Expressions can not be put on instance variable probes currently --jb, pre"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPInstanceVariableValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
"class" : {
},
"instance" : {
"linkedProbes" : "joabe 10/6/2023 11:13",
"removeButtonClicked" : "joabe 10/4/2023 16:22",
"step" : "joabe 10/4/2023 11:52" } }
"updateExpressionMorphIfNecessary" : "joabe 10/6/2023 10:34",
"valuesMorphClass" : "joabe 10/6/2023 11:21" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Collect traces values not for the given probe id, but the linked probe ids in chronological order
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
basicValuesFor: aTrace

^ ((self probeMorph linkedProbes collect: [:aLinkedProbe | aTrace valuesForProbeId: aLinkedProbe id]) flatten)
sorted: [:aTraceValue | aTraceValue chronologicalPosition] ascending
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"class" : {
},
"instance" : {
"basicValuesFor:" : "joabe 10/6/2023 11:23" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "Babylonian-UI-Morphs",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "joabe 10/6/2023 11:11",
"instvars" : [
],
"name" : "BPInstanceVariableValuesMorph",
"pools" : [
],
"super" : "BPValuesMorph",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
private - ui
newValuesMorphTracing: aTrace


^ BPValuesMorph newIn: self tracing: aTrace
^ self valuesMorphClass newIn: self tracing: aTrace
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"newLabelMorph" : "joabe 5/9/2023 17:35",
"newLineMorphFor:" : "joabe 7/2/2023 16:33",
"newScrollPane" : "pre 1/6/2021 10:50",
"newValuesMorphTracing:" : "joabe 7/1/2023 17:02",
"newValuesMorphTracing:" : "joabe 10/6/2023 11:20",
"newVisualizeButtonFor:" : "jb 10/28/2021 18:57",
"noValuesTextFor:" : "joabe 5/31/2023 19:34",
"relevantTracesOf:do:" : "pre 5/3/2021 10:46",
Expand All @@ -34,4 +34,5 @@
"updateLabelMorphIfNecessary" : "jb 10/28/2021 18:25",
"updateResultsFrom:" : "joabe 7/1/2023 17:10",
"updateVisualizationMorphInside:over:for:" : "pre 5/26/2021 20:43",
"valuesMorphClass" : "joabe 10/6/2023 11:19",
"visualizeButtonClickedFor:" : "pre 5/27/2021 12:06" } }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPProfilingValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"instance" : {
"annotationLabel" : "pre 11/29/2022 16:35",
"isProfilingProbe" : "pre 11/29/2022 16:34",
"newValuesMorphTracing:" : "joabe 7/1/2023 17:03",
"standardDeviation:" : "pre 11/30/2022 10:12",
"updateFrom:" : "joabe 7/1/2023 17:05" } }
"updateFrom:" : "joabe 7/1/2023 17:05",
"valuesMorphClass" : "joabe 10/6/2023 11:22" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

self subclassResponsibility
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
"step" : "pre 1/11/2021 13:59",
"stepTime" : "pre 8/20/2020 17:35",
"update:" : "jb 12/7/2020 19:00",
"updateFrom:" : "jb 12/7/2020 19:00" } }
"updateFrom:" : "jb 12/7/2020 19:00",
"valuesMorphClass" : "joabe 10/6/2023 11:20" } }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
private - ui
valuesMorphClass

^ BPTypeValuesMorph
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"instance" : {
"annotationLabel" : "pre 11/30/2022 09:34",
"isTypeProbe" : "pre 11/30/2022 09:36",
"newValuesMorphTracing:" : "joabe 7/1/2023 17:04",
"updateFrom:" : "joabe 7/1/2023 17:05" } }
"updateFrom:" : "joabe 7/1/2023 17:05",
"valuesMorphClass" : "joabe 10/6/2023 11:22" } }

0 comments on commit 17cac43

Please sign in to comment.