Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add writeback option to metrics #2

Closed
wants to merge 10 commits into from
Closed

Add writeback option to metrics #2

wants to merge 10 commits into from

Conversation

neofob
Copy link

@neofob neofob commented Oct 8, 2016

It would be nice to have the timing data to be written back to a list. Code that uses the decorator can have some info on the timing of the function.

This PR is based on the previous PR #1 by @replay.

replay and others added 10 commits August 25, 2015 20:22
setup.py:
	* Revert to original `perfmetrics` name
	* Keep the url as its original author
perfmetrics/__init__.py:
	* Add a writeback option so that the code that uses this metric
	decorator can the timing to be used internally.

perfmetrics/tests/test_perfmetrics.py:
	* Add test to check on writeback option
neofob pushed a commit to neofob/perfmetrics that referenced this pull request Oct 9, 2016
@jamadden
Copy link
Member

Thanks for the PR. I'm afraid it won't come close to applying without some work, though. It's probably better to start a fresh PR if this is still interesting.

It's not clear to me, however, that this functionality really belongs here, or that there might not be a different way to implement it already (for example, by pushing a client onto the stack which saves the information locally and then calls the previous client).

@jamadden jamadden closed this Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants