aptos-labs / aptos-labs/aptos-core

[Feature Request] Call graph visualization in the tool chain

Open
#14,799 2 comments 2 reactions 1 assignee Claimed by @junxzm1990 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.