I'm trying to find out how much different parts of my code base are used. How best to traverse the import tree and find out what imports what? Ideally the resulting data could tell me
- which objects are imported
- the files in which the imported objects are defined
- the files the objects are imported to
Note: One option is to run all the tests and profile using this post. However, tests are not even across the code base, with some areas having no tests, so this wouldn't be hugely representative.