Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review
  • Loading branch information
sobolevn committed Nov 2, 2024
commit b84dde3911e6965cca84013d49b6814839f0fe65
12 changes: 6 additions & 6 deletions Modules/_lsprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ profiler_dealloc(ProfilerObject *op)
}

/*[clinic input]
_lsprof.Profiler.__init__
_lsprof.Profiler.__init__ as profile_init

timer: object(c_default='NULL') = None
timeunit: double = 0.0
Expand All @@ -949,9 +949,9 @@ is, in seconds).
[clinic start generated code]*/

static int
_lsprof_Profiler___init___impl(ProfilerObject *self, PyObject *timer,
double timeunit, int subcalls, int builtins)
/*[clinic end generated code: output=ab5498359fd34283 input=40225117dd22d4d7]*/
profile_init_impl(ProfilerObject *self, PyObject *timer, double timeunit,
int subcalls, int builtins)
/*[clinic end generated code: output=123b1ff3fc783e14 input=25202b9566e5441c]*/
{
if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0)
Comment thread
sobolevn marked this conversation as resolved.
Outdated
return -1;
Expand Down Expand Up @@ -985,10 +985,10 @@ static PyMethodDef profiler_methods[] = {
};

static PyType_Slot _lsprof_profiler_type_spec_slots[] = {
{Py_tp_doc, (void *)_lsprof_Profiler___init____doc__},
{Py_tp_doc, (void *)profile_init__doc__},
{Py_tp_methods, profiler_methods},
{Py_tp_dealloc, profiler_dealloc},
{Py_tp_init, _lsprof_Profiler___init__},
{Py_tp_init, profile_init},
{Py_tp_traverse, profiler_traverse},
{0, 0}
};
Expand Down
18 changes: 9 additions & 9 deletions Modules/clinic/_lsprof.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.