Skip to content
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

Recognize goroutines' patterns for proper visualization #5

Open
divan opened this issue Jul 19, 2016 · 0 comments
Open

Recognize goroutines' patterns for proper visualization #5

divan opened this issue Jul 19, 2016 · 0 comments

Comments

@divan
Copy link
Owner

divan commented Jul 19, 2016

In many cases goroutines' invocation have some patterns (i.e. workers, server, etc). They could (and should) be grouped logically and visually separated from other goroutines/groups. This goal is achieved by customizing visualization properties like "angle" and "distance".

Currently the following scheme is implemented: for each goroutine the nesting depth is calculated (0 - means 'main', 1 - 'started from main', etc). Then angle for this depth level is calculated as simple as 360/count.

This approach is ok for simple 1 or 2 nesting level programs (TODO: analyze all github projects to see distribution of goroutines nesting). For more complex programs the visualization will be probably messy.

Workaround: allow user to configure angles/distances manually (per goroutine name, maybe?)

Proper solution: detect patterns, based on name+parent+creation_time and calculate angles/distances separately for each pattern group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant