Pymetrix basically tries to be an opensource plug-‘n’-play python analytics library. It can be extended with various plugins that can be implemented in a manner I’ve tried to keep as straightforward as possible.
Being heavily inspired from Google Analytics, Pymetrix makes use of graphs to denote the entire flow of control, with each node denoting the function (or object) you want to get metrics of. The graph structure also enables you to get metrics of the sequence of execution, so that you can determine UX metrics as well.