This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jdemeyer
Recipients jdemeyer
Date 2018-07-16.17:16:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531761360.51.0.56676864532.issue34125@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-07-16 17:16:00jdemeyersetrecipients: + jdemeyer
2018-07-16 17:16:00jdemeyersetmessageid: <1531761360.51.0.56676864532.issue34125@psf.upfronthosting.co.za>
2018-07-16 17:16:00jdemeyerlinkissue34125 messages
2018-07-16 17:16:00jdemeyercreate