문제

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