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

Add callgraphutil.WriteCosmograph #28

Merged
merged 4 commits into from
Jan 6, 2024
Merged

Add callgraphutil.WriteCosmograph #28

merged 4 commits into from
Jan 6, 2024

Conversation

picatz
Copy link
Owner

@picatz picatz commented Jan 6, 2024

This PR adds the callgraphutil.WriteCosmograph function which can write a given *callgraph.Graph in Cosmograph format, outputting both the graph and metadata CSV. This enables nodes to be identified and colored by function and package names respectively. Once that's setup, functions from a specific package can be selected.

Examples

Loading ./... packages from different Go projects to demonstrate:

github.com/picatz/taint

Screenshot 2024-01-05 at 9 57 32 PM

Selecting a specific package:

Screenshot 2024-01-05 at 9 58 36 PM

github.com/tailscale/tailscale

Screenshot 2024-01-05 at 10 14 53 PM

github.com/hashicorp/vault

Screenshot 2024-01-05 at 10 21 24 PM

@picatz picatz merged commit 0c5541b into main Jan 6, 2024
1 check passed
@picatz picatz deleted the cosmograph-out branch January 6, 2024 04:25
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

Successfully merging this pull request may close these issues.

1 participant