-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Profiling depends on whether **kwargs is given #78306
Labels
3.7 (EOL)
end of life
3.8 (EOL)
end of life
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
Comments
Enable profiling for C functions: >>> def prof(frame, typ, arg):
... if typ.startswith("c_"):
... print(arg, typ)
>>> import sys; sys.setprofile(prof) and notice how profiling depends on **kwargs: >>> list.append([], None)
<built-in method append of list object at 0x7f52da2a2dd0> c_call
<built-in method append of list object at 0x7f52da2a2dd0> c_return
>>> list.append([], None, **{}) There is no specification of what should be profiled and what not, so it's not clear what is the "correct" behavior. For the record: in Python 3.6, neither of these were profiled. |
jdemeyer
added
3.7 (EOL)
end of life
3.8 (EOL)
end of life
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
labels
Jul 16, 2018
I opened a wider discussion: bpo-29502. The discussion didn't go anywhere yet. |
This is missing a testcase: PR 13461 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.7 (EOL)
end of life
3.8 (EOL)
end of life
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: