TOC
Pymetrix-Python
What is Pymetrix?
Pymetrix is a plug-and-play analytics library written in Python.
Usage
Pymetrix is really easy to integrate with your projects. Here’s an example:
Let’s say you want to monitor a method foo()
defined as:
|
|
After adding the required lines, the code will look something like this:
|
|
You can access the metrics of foo()
from the metricman
object with:
|
|
To get all the metrics of all the methods at once:
|
|
For looking into what more Pymetrix can do, head to tests/flow_test.py
.
comments powered by Disqus