-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft configuration setup #41
Open
nadilas
wants to merge
7
commits into
bradleyjkemp:master
Choose a base branch
from
nadilas:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8056ae1
draft config.go setup
4cdd2f1
Create go.yml
b6645e0
Merge remote-tracking branch 'origin/master'
06c79eb
fixes ineffectual assignment to `fn`
f73937d
introduce suggested edits
6d5c83a
remove github workflows
cacaf39
remove write to png duplicate
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
3 [label="<name> 0"]; | ||
4 [label="<name> 0"]; | ||
5 [label="<name> (0+0i)"]; | ||
6 [label="<name> (0+0i)"]; | ||
7 [label="<name> 0"]; | ||
8 [label="<name> 0"]; | ||
9 [label="<name> 0"]; | ||
10 [label="<name> 0"]; | ||
11 [label="<name> 0"]; | ||
12 [label="<name> 0"]; | ||
13 [label="<name> 0"]; | ||
14 [label="<name> 0"]; | ||
15 [label="<name> 0"]; | ||
16 [label="<name> (0+0i)"]; | ||
17 [label="<name> (0+0i)"]; | ||
18 [label="<name> 0"]; | ||
19 [label="<name> 0"]; | ||
20 [label="<name> 0"]; | ||
21 [label="<name> 0"]; | ||
22 [label="<name> 0"]; | ||
2 [label="<name> github.com/bradleyjkemp/memviz_test.basicNumerics |{<f0> uint8 | 0} |{<f1> uint32 | 0} |{<f2> uint64 | 0} |{<f3> int8 | 0} |{<f4> int16 | 0} |{<f5> int32 | 0} |{<f6> int64 | 0} |<f7> float32|<f8> float64|<f9> complex64|<f10> complex128|{<f11> byte | 0} |{<f12> rune | 0} |{<f13> uint | 0} |{<f14> int | 0} |<f15> uintptr|<f16> Ptruint32|<f17> Ptruint64|<f18> Ptrint8|<f19> Ptrint16|<f20> Ptrint32|<f21> Ptrint64|<f22> Ptrfloat32|<f23> Ptrfloat64|<f24> Ptrcomplex64|<f25> Ptrcomplex128|<f26> Ptrbyte|<f27> Ptrrune|<f28> Ptruint|<f29> Ptrint|<f30> Ptruintptr "]; | ||
2:f7 -> 3:name; | ||
2:f8 -> 4:name; | ||
2:f9 -> 5:name; | ||
2:f10 -> 6:name; | ||
2:f15 -> 7:name; | ||
2:f16 -> 8:name; | ||
2:f17 -> 9:name; | ||
2:f18 -> 10:name; | ||
2:f19 -> 11:name; | ||
2:f20 -> 12:name; | ||
2:f21 -> 13:name; | ||
2:f22 -> 14:name; | ||
2:f23 -> 15:name; | ||
2:f24 -> 16:name; | ||
2:f25 -> 17:name; | ||
2:f26 -> 18:name; | ||
2:f27 -> 19:name; | ||
2:f28 -> 20:name; | ||
2:f29 -> 21:name; | ||
2:f30 -> 22:name; | ||
23 [label="<name> []string |{<23index0> 0|<23value0> \"Hello\"}|{<23index1> 1|<23value1> \"Brave\"}|{<23index2> 2|<23value2> \"New\"}|{<23index3> 3|<23value3> \"World\"} "]; | ||
24 [label="<name> \"Hello\""]; | ||
25 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> github.com/bradleyjkemp/memviz_test.basics |<f0> numerics|{<f1> string | \"Hi\"} |<f2> slice|<f3> ptr|<f4> iface "]; | ||
1:f0 -> 2:name; | ||
1:f2 -> 23:name; | ||
1:f3 -> 24:name; | ||
1:f4 -> 25:name; | ||
26 [label="<name> *memviz_test.basics"]; | ||
26:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
3 [label="<name> \"Hello\""]; | ||
4 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> basics2 |{<f1> string | \"Hi\"} |{<f2> slice | {{<2index0> 0|<2value0> \"Hello\"}|{<2index1> 1|<2value1> \"World\"}}} |<f3> ptr|<f4> iface "]; | ||
1:f3 -> 3:name; | ||
1:f4 -> 4:name; | ||
5 [label="<name> *memviz_test.basics2"]; | ||
5:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
2 [label="<name> \"Hello\""]; | ||
3 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> basics |{<f1> string | \"Hi\"} |<f3> ptr|<f4> iface "]; | ||
1:f3 -> 2:name; | ||
1:f4 -> 3:name; | ||
4 [label="<name> *memviz_test.basics"]; | ||
4:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
2 [label="<name> []string |{<2index0> 0|<2value0> \"Hello\"}|{<2index1> 1|<2value1> \"Brave\"}|{<2index2> 2|<2value2> \"New\"}|{<2index3> 3|<2value3> \"World\"} "]; | ||
3 [label="<name> \"Hello\""]; | ||
4 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> basics |{<f1> string | \"Hi\"} |<f2> slice|<f3> ptr|<f4> iface "]; | ||
1:f2 -> 2:name; | ||
1:f3 -> 3:name; | ||
1:f4 -> 4:name; | ||
5 [label="<name> *memviz_test.basics"]; | ||
5:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
3 [label="<name> 0"]; | ||
4 [label="<name> 0"]; | ||
5 [label="<name> (0+0i)"]; | ||
6 [label="<name> (0+0i)"]; | ||
7 [label="<name> 0"]; | ||
8 [label="<name> 0"]; | ||
9 [label="<name> 0"]; | ||
10 [label="<name> 0"]; | ||
11 [label="<name> 0"]; | ||
12 [label="<name> 0"]; | ||
13 [label="<name> 0"]; | ||
14 [label="<name> 0"]; | ||
15 [label="<name> 0"]; | ||
16 [label="<name> (0+0i)"]; | ||
17 [label="<name> (0+0i)"]; | ||
18 [label="<name> 0"]; | ||
19 [label="<name> 0"]; | ||
20 [label="<name> 0"]; | ||
21 [label="<name> 0"]; | ||
22 [label="<name> 0"]; | ||
2 [label="<name> basicNumerics |{<f0> uint8 | 0} |{<f1> uint32 | 0} |{<f2> uint64 | 0} |{<f3> int8 | 0} |{<f4> int16 | 0} |{<f5> int32 | 0} |{<f6> int64 | 0} |<f7> float32|<f8> float64|<f9> complex64|<f10> complex128|{<f11> byte | 0} |{<f12> rune | 0} |{<f13> uint | 0} |{<f14> int | 0} |<f15> uintptr|<f16> Ptruint32|<f17> Ptruint64|<f18> Ptrint8|<f19> Ptrint16|<f20> Ptrint32|<f21> Ptrint64|<f22> Ptrfloat32|<f23> Ptrfloat64|<f24> Ptrcomplex64|<f25> Ptrcomplex128|<f26> Ptrbyte|<f27> Ptrrune|<f28> Ptruint|<f29> Ptrint|<f30> Ptruintptr "]; | ||
2:f7 -> 3:name; | ||
2:f8 -> 4:name; | ||
2:f9 -> 5:name; | ||
2:f10 -> 6:name; | ||
2:f15 -> 7:name; | ||
2:f16 -> 8:name; | ||
2:f17 -> 9:name; | ||
2:f18 -> 10:name; | ||
2:f19 -> 11:name; | ||
2:f20 -> 12:name; | ||
2:f21 -> 13:name; | ||
2:f22 -> 14:name; | ||
2:f23 -> 15:name; | ||
2:f24 -> 16:name; | ||
2:f25 -> 17:name; | ||
2:f26 -> 18:name; | ||
2:f27 -> 19:name; | ||
2:f28 -> 20:name; | ||
2:f29 -> 21:name; | ||
2:f30 -> 22:name; | ||
23 [label="<name> []string |{<23index0> 0|<23value0> \"Hello\"}|{<23index1> 1|<23value1> \"Brave\"}|{<23index2> 2|<23value2> \"New\"}|{<23index3> 3|<23value3> \"World\"} "]; | ||
24 [label="<name> \"Hello\""]; | ||
25 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> basics |<f0> numerics|{<f1> string | \"Hi\"} |<f2> slice|<f3> ptr|<f4> iface "]; | ||
1:f0 -> 2:name; | ||
1:f2 -> 23:name; | ||
1:f3 -> 24:name; | ||
1:f4 -> 25:name; | ||
26 [label="<name> *memviz_test.basics"]; | ||
26:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
digraph structs { | ||
node [shape=Mrecord]; | ||
3 [label="<name> 0"]; | ||
4 [label="<name> 0"]; | ||
5 [label="<name> (0+0i)"]; | ||
6 [label="<name> (0+0i)"]; | ||
7 [label="<name> 0"]; | ||
8 [label="<name> 0"]; | ||
9 [label="<name> 0"]; | ||
10 [label="<name> 0"]; | ||
11 [label="<name> 0"]; | ||
12 [label="<name> 0"]; | ||
13 [label="<name> 0"]; | ||
14 [label="<name> 0"]; | ||
15 [label="<name> 0"]; | ||
16 [label="<name> (0+0i)"]; | ||
17 [label="<name> (0+0i)"]; | ||
18 [label="<name> 0"]; | ||
19 [label="<name> 0"]; | ||
20 [label="<name> 0"]; | ||
21 [label="<name> 0"]; | ||
22 [label="<name> 0"]; | ||
2 [label="<name> basicNumerics |{<f0> uint8 | 0} |{<f1> uint32 | 0} |{<f2> uint64 | 0} |{<f3> int8 | 0} |{<f4> int16 | 0} |{<f5> int32 | 0} |{<f6> int64 | 0} |<f7> float32|<f8> float64|<f9> complex64|<f10> complex128|{<f11> byte | 0} |{<f12> rune | 0} |{<f13> uint | 0} |{<f14> int | 0} |<f15> uintptr|<f16> Ptruint32|<f17> Ptruint64|<f18> Ptrint8|<f19> Ptrint16|<f20> Ptrint32|<f21> Ptrint64|<f22> Ptrfloat32|<f23> Ptrfloat64|<f24> Ptrcomplex64|<f25> Ptrcomplex128|<f26> Ptrbyte|<f27> Ptrrune|<f28> Ptruint|<f29> Ptrint|<f30> Ptruintptr "]; | ||
2:f7 -> 3:name; | ||
2:f8 -> 4:name; | ||
2:f9 -> 5:name; | ||
2:f10 -> 6:name; | ||
2:f15 -> 7:name; | ||
2:f16 -> 8:name; | ||
2:f17 -> 9:name; | ||
2:f18 -> 10:name; | ||
2:f19 -> 11:name; | ||
2:f20 -> 12:name; | ||
2:f21 -> 13:name; | ||
2:f22 -> 14:name; | ||
2:f23 -> 15:name; | ||
2:f24 -> 16:name; | ||
2:f25 -> 17:name; | ||
2:f26 -> 18:name; | ||
2:f27 -> 19:name; | ||
2:f28 -> 20:name; | ||
2:f29 -> 21:name; | ||
2:f30 -> 22:name; | ||
24 [label="<name> \"Hello\""]; | ||
25 [label="<name> \"interfaceValue\""]; | ||
1 [label="<name> basics |<f0> numerics|{<f1> string | \"Hi\"} |{<f2> slice | {{<23index0> 0|<23value0> \"Hello\"}|{<23index1> 1|<23value1> \"Brave\"}|{<23index2> 2|<23value2> \"New\"}|{<23index3> 3|<23value3> \"World\"}}} |<f3> ptr|<f4> iface "]; | ||
1:f0 -> 2:name; | ||
1:f3 -> 24:name; | ||
1:f4 -> 25:name; | ||
26 [label="<name> *memviz_test.basics"]; | ||
26:name -> 1:name; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can probably lift this repeated depth check to just run once at the start of this function. If we're taking depth to mean "number of graphviz nodes" then I think we can use:
i.e. if this value is going to cause another node to be created and we've already reached the limit then stop. This is perhaps a bit tricky because of the behaviour of
inlineable
though.I'd have to remind myself what exactly this does but I think it's more of a hint than an instruction so accurately calculating depth is tricky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure we have interpreted �������
depth
differently. 😆 When you say "number of graphviz nodes", do you mean a) in total? or b) the number of graphviz nodes down the embedded tree of the root object?I think this actually caught my attention during the first testing, and I worked around it. If it's inlineable it will still be rendered,
maxdepth
"only" has an influence on next level objects. Please go in and test this, I will too, I am unclear on the details 😉