Just built a little square map implementation in wxPython. Eventually will be integrating it into RunSnakeRun to let you see a graphical breakdown of the hotspots in your profile (as you do in KCacheGrind, but this should run easily on any of the major platforms because of wxPython). I think I'll want to tweak the layout and optimize it before integrating it, but it's kinda neat even as it is.
bzr branch http://www.vrplumber.com/bzr/squaremap
To get the code. A sample image is online for those who are saying "What's a square map?" The sample image is just showing the directory structure on my work laptop, btw. The highlight follows the mouse and is pointing at the INBOX directory.
At the moment the "highlight" code is built into the square-map, might want to make it just something that the client code can set. I'm also thinking maybe I should separate out the layout logic from the GUI code so that the same code could run in e.g. Eric under Qt. That's for another day, though.
Pingbacks are closed.