-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Allow interim reset of profile data #74
Comments
@wan54 your example seems incomplete. Can you provide a complete test case, that exposes eventual issue? |
You're right. It's because only the last one the issue. I'm clearing as soon as fn() finishes. Thanks. Is it expected though that the next fn invocation increases the Initial hit size
|
With |
I was questioning why the initial hit increases in the subsequent clear and call.
… On 16 Mar 2017, at 18:17, Mariusz Nowak ***@***.***> wrote:
With clear you clear the cache totally, and you go back to initial state, so it's normal that next invocations will produce similar profile output as first one. Unless I don't understand something (?)
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@wan54 you mean, why counter was not reset after clear? The profile functionality is global, it covers all memoized functions registered in a process, and doesn't have any reset counter function. Would you like to see it? I think it makes sense to add it |
Yes that'd be great. Thanks.
… On 17 Mar 2017, at 19:26, Mariusz Nowak ***@***.***> wrote:
@wan54 you mean, why counter was not reset after clear?
The profile functionality is global, it covers all memoized functions registered in a process, and doesn't have any reset counter function. Would you like to see it? I think it makes sense to add it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ok Iet's make this issue about that. I'll leave it open until it's addressed |
EDIT: This issue originally was false bug report, but ended as a request for ability to reset profile numbers
calling clear() on a memoized function doesn't seem to work.
example:
any ideas why clear() does not have any effect?
Thanks
The text was updated successfully, but these errors were encountered: