I am looking for a tool that can analyze Cython and Python code. I am particularly interested in call graphs.

A bit of background: I am refactoring a package that has some rather "organically grown" modules. I suspect I can prune away quite a few methods in those modules. For that purpose, I'd need to know which other parts of the package depend on pruning candidates. Furthermore, I hope to get some information on possible "feature envy" of my classes.

Thank you for your help!

有帮助吗?

解决方案

Build a dependency tree with snakefood, but it will be only in python space.

You can get a call hierarchy for some calls by profiling your "smoke tests". See here how to enable profiling for cython.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top