Nice! I'm working on internal tooling for us that does a lot of the same things - gonna buy the book, thanks for that, weird I've never heard about it.
For now I'm measuring: churn, complexity, linting, test coverage, test quality and am going to add a dependency graph.
It seems to me that churn, complexity and dependencies are the biggest indicators of a hotspot.
Got any tips for possible problems I'll encounter along the way?