Skip to content

Commit 49582a9

Browse files
committed
Reduces the recording of process genealogy to processes created during tracing.
1 parent 95c2342 commit 49582a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/Babylonian-Core.package/Process.extension/class/forContext.priority..st

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ forContext: aContext priority: anInteger
1818
activeProcess propagatesDynamicVariables ifTrue: [
1919
activeProcess setDynamicVariables do: [:dynamicVariable |
2020
newProcess environmentAt: dynamicVariable put: (activeProcess environmentAt: dynamicVariable)]].
21-
BPProcessGenealogy newProcess: newProcess descendsFrom: activeProcess.
21+
(activeProcess environmentAt: BPActiveTracer ifAbsent: [nil]) ifNotNil: [
22+
"we are tracing so record process genealogy"
23+
BPProcessGenealogy newProcess: newProcess descendsFrom: activeProcess].
2224

2325
"-------------- BP ContextS2 additions end --------------"
2426

packages/Babylonian-Core.package/Process.extension/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"class" : {
3-
"forContext:priority:" : "pre 1/12/2023 08:53" },
3+
"forContext:priority:" : "pre 1/12/2023 09:29" },
44
"instance" : {
55
"dontPropagateCSLayers" : "pre 1/11/2023 15:44",
66
"dontPropagateDynamicVariables" : "pre 1/11/2023 15:52",

0 commit comments

Comments
 (0)