aptos-labs / aptos-labs/aptos-core
[Feature Request] Call graph visualization in the tool chain
Open
compiler-v2
enhancement
move-tools
stale-exempt
- Dominant language
- Rust
- Stars
- 6.4k
- Forks
- 3.9k
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 78
Description
# 🚀 Feature Request
Add an option to dump call graph [dot file](https://graphviz.org/doc/info/lang.html) from a package of Move bytecode instructions.
That is, running
```
aptos move disassemble --package-path --call-graph-dump
```
should create a dot file with the call graph information in it.
## Motivation
This feature is useful in exploring a package for understanding it, debugging it, security auditing, etc. Similar functionality is available in tools for other smart contract languages, see https://github.com/crytic/slither/wiki/Printer-documentation#call-graph.
Originally requested by @zi0Black.
Contributor guide
Assessment
This issue has not been assessed yet.