Cue / scales

scales - Metrics for Python
Apache License 2.0
920 stars 73 forks source link

Add single stat for timing sections of code #42

Closed dannyOhNo closed 6 years ago

dannyOhNo commented 8 years ago

Add single stat for timing sections of code, but without probabilistic calculations saved.

Given a high throughput system, the need may arise to time sections of code without performing probabilistic calculations (PmfStat).

The purpose of this is two-fold.

1) To reduce the processor load by eliminating the PMF calculations.

2) To reduce the data storage required by storing the PMF results.

To solve this need, I’ve done the following:

dannyOhNo commented 8 years ago

All tests pass locally by doing...

source venv/bin/activate python setup.py test

image

Not sure why this is failing. If PR is going to be accepted, I can write some unit tests for the new class.