Domanda

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!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top