Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leolin49/funcgraph
课程作业:从一段源代码解析其中的函数调用关系,并实现可视化
https://github.com/leolin49/funcgraph
Last synced: 2 days ago
JSON representation
课程作业:从一段源代码解析其中的函数调用关系,并实现可视化
- Host: GitHub
- URL: https://github.com/leolin49/funcgraph
- Owner: leolin49
- License: apache-2.0
- Created: 2024-03-08T02:20:58.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-20T07:07:19.000Z (10 months ago)
- Last Synced: 2024-03-20T08:26:37.475Z (10 months ago)
- Language: Python
- Homepage:
- Size: 289 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# FuncGraph
从源代码解析其中的函数调用关系,并生成对应的函数调用关系图
支持指定文件路径,或者从控制台输入
> 目前仅支持 C++ / Golang / Python
## 使用方法
### 从源文件读入
```
python fcav.py gen testfiles/test.cpp
```
示例![](./image/example3.png)
### 从文本框输入
需要指定输入的代码类型,输入完成后关闭窗口即可执行
```
python fcav.py editor golang
```
![](./image/example5.png)### 从控制台输入
需要指定输入的代码类型,输入完成后 ***Ctrl+Z*** 结束输入
```
python fcav.py input python
```
```python
def a():
b()
c()
def b():
d()def c():
d()
def d():
print("hello fcav")# input Ctrl+Z for ending
# ^Z
```![](./image/example4.png)