... | ... | @@ -138,8 +138,9 @@ Google的最佳实践介绍 |
|
|
|
|
|
# 其他
|
|
|
```shell
|
|
|
cd xx
|
|
|
pyreverse --project Pyreverse . --ignore test --output png # 工程结构图
|
|
|
pyreverse --project Pyreverse $path --ignore test --output png # 工程结构图
|
|
|
|
|
|
cd $path
|
|
|
python -m cProfile -o tmp.pstats tmp.py # 性能分析
|
|
|
gprof2dot -f pstats tmp.pstats | dot -T png -o tmp.png # 性能分析可视化
|
|
|
```
|
... | ... | @@ -168,4 +169,4 @@ gprof2dot -f pstats tmp.pstats | dot -T png -o tmp.png # 性能分析可视化 |
|
|
- 非正式的
|
|
|
- 基于工具的
|
|
|
- 异步
|
|
|
- 专注于变更代码 --> |
|
|
- 专注于变更代码 --> |
|
|
\ No newline at end of file |