-
Notifications
You must be signed in to change notification settings - Fork 4
feature request: suspended mode #5
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 priva 8000 cy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @gilbh ! Currently, there is no such mode, but it seems like it would be relatively easy to implement 😄 . I will try to think of a good way to do it. |
Great! Keep me posted when it is added. |
What would you think of something like this: import ticktock
@ticktock.ticktock()
def f():
pass
# these are counted
f()
f()
ticktock.disable()
# this call is discarded
f()
ticktock.enable()
# these are counted again
f()
f() |
Fantastic. Few small ideas:
I mention that b/c These are just passing ideas. Keep on rocking. |
Thanks (again) for the constructive feedback!
|
Cool. As for item #2: would the user need to import disable() and enable() as well? Or any way to reduce that? (Sorry for being a stickler, all's is well with things as they are!). |
At the moment, yes. I'll see about adding the |
I have made a release with Thanks for contributing! |
Hi,
I could not find in documentation: is there a way of temporarily shutting off all ticktock calls? This is helpful for switching between debug and production modes.
Thanks!
The text was updated successfully, but these errors were encountered: