未验证 提交 208b68a4 编写于 作者: P Phodal Huang

docs: add doc for RCall

上级 c010c328
......@@ -234,6 +234,26 @@ Results:
1 study.huhao.demo.domain.core.common.Page.getConvertedContent
```
### Reverse Call Graph
```
coca rcall -c org.bytedeco.javacpp.tools.TokenIndexer.get
```
Results:
```
digraph G {
edge [dir="back"];
"org.bytedeco.javacpp.tools.Parser.extern" -> "org.bytedeco.javacpp.tools.Parser.declarations";
"org.bytedeco.javacpp.tools.Parser.declarations" -> "org.bytedeco.javacpp.tools.Parser.extern";
...
}
```
![RCall Demo](docs/sample/rcall.svg)
### Auto Refactor
support:
......
......@@ -22,7 +22,9 @@ func (c CallGraph) Analysis(funcName string, clzs []models.JClassNode) string {
return dotContent
}
// TODO: be a utils
func ToGraphviz(chain string) string {
//rankdir = LR;
var result = "digraph G { \n"
result = result + chain
result = result + "}\n"
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册