golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

callgraph: unclear calls in the output of callgraph tool #613

Open ilyas9797 opened 5 years ago

ilyas9797 commented 5 years ago

Hi everyone. I came across some unclear result when used callgraph to analyze go-ethereum project. Could you give me a clue to find an explanation, please?

I used these commands to generate reports:

1) rta analysis: callgraph github.com/ethereum/go-ethereum/cmd/geth > go-ethereum_call.txt

2) pta analysis: callgraph -algo pta github.com/ethereum/go-ethereum/cmd/geth > go-ethereum_call_pta.txt

Specifically, I cannot understand this line which appears in both reports: (github.com/ethereum/go-ethereum/log.funcHandler).Log --dynamic-36:10--> github.com/ethereum/go-ethereum/log.StreamHandler$1

This is supposed should be called here: https://github.com/ethereum/go-ethereum/blob/a9835c1816bc49ee54c82b4f2a5b05cbcd89881b/log/handler.go#L36

What is the reason that such dynamic call could occur and in which case it is possible?

urandom2 commented 5 years ago

I think you may have filed this against the wrong project. This is for godoc.org and associated tools, I think you need to make an issue under http://github.com/golang/tools since it owns golang.org/x/tools/cmd/callgraph.