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

File position #67

Merged
merged 52 commits into from
Dec 29, 2020
Merged

File position #67

merged 52 commits into from
Dec 29, 2020

Conversation

gentzeng
Copy link
Contributor

This feature enhances the edge discription in the resulting dot graph and svg outputs.

  1. Hovering over function nodes displays, in which file and at what line the respective function is definded.
  2. Hovering over edges from functions to functions displays, at what line inside the calling function the callee is being called.

The enhancement also apply to anonymous functions: If an anonymous function is assigned to a variable, the line position of the call to that variable is displayed as the call to the anonymous function.

gentzeng added 24 commits July 14, 2020 12:46
- transformed WriteDot() to (*dotGraph).WriteDot()
- transformed render() to (*analysis).Render()
- added variable opts *renderOpts to type analysis
- transformed analysisSetup() to (*analysis).OptsSetup()
- transformed processListArgs to (*analysis).ProcessListARgs()
- added (*analysis).OverrideByHTTP() with respective code part from
  handler.go
- transformed doAnalysis() to  (*analysis).DoAnalysis()

also did some code cleanup and added comments
position of function call in "posCallee" was derived from caller instead
of the callee
manipulated dot edge tooltip to display, where a function was called
moved appending of edges from edgeMap right before dotGraph is created
reason: edges tooltips need be changed for edge duplicates
gentzeng and others added 5 commits July 17, 2020 19:22
tooltip of nodes representing functions is now set explicitly
nodes repressenting functions are now enhanced with the tooltips of the
outgoing edges
@ondrajz
Copy link
Owner

ondrajz commented Oct 6, 2020

If you could please rebase this on master, I can merge.

- transformed WriteDot() to (*dotGraph).WriteDot()
- transformed render() to (*analysis).Render()
- added variable opts *renderOpts to type analysis
- transformed analysisSetup() to (*analysis).OptsSetup()
- transformed processListArgs to (*analysis).ProcessListARgs()
- added (*analysis).OverrideByHTTP() with respective code part from
  handler.go
- transformed doAnalysis() to  (*analysis).DoAnalysis()

also did some code cleanup and added comments
position of function call in "posCallee" was derived from caller instead
of the callee
manipulated dot edge tooltip to display, where a function was called
moved appending of edges from edgeMap right before dotGraph is created
reason: edges tooltips need be changed for edge duplicates
tooltip of nodes representing functions is now set explicitly
nodes repressenting functions are now enhanced with the tooltips of the
outgoing edges
@gentzeng
Copy link
Contributor Author

gentzeng commented Oct 6, 2020

It's done. Hope, it helps

@ondrajz ondrajz merged commit e6144a9 into ondrajz:master Dec 29, 2020
@ondrajz ondrajz added this to the v0.7.0 milestone Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants