查看python 变量引用关系:
import objgraph
objgraph.show_backrefs(schema_tpl, max_depth=5, filename = "/root/schema_tpl.png")
提示如下错误:
Graph written to /tmp/objgraph-v771vdb0.dot (11 nodes)
Image renderer (dot) not found, not doing anything else
解决方案(centos):
yum install graphviz