17db96d56Sopenharmony_ci/*[clinic input] 27db96d56Sopenharmony_cipreserve 37db96d56Sopenharmony_ci[clinic start generated code]*/ 47db96d56Sopenharmony_ci 57db96d56Sopenharmony_ciPyDoc_STRVAR(_lsprof_Profiler_getstats__doc__, 67db96d56Sopenharmony_ci"getstats($self, /)\n" 77db96d56Sopenharmony_ci"--\n" 87db96d56Sopenharmony_ci"\n" 97db96d56Sopenharmony_ci"list of profiler_entry objects.\n" 107db96d56Sopenharmony_ci"\n" 117db96d56Sopenharmony_ci"getstats() -> list of profiler_entry objects\n" 127db96d56Sopenharmony_ci"\n" 137db96d56Sopenharmony_ci"Return all information collected by the profiler.\n" 147db96d56Sopenharmony_ci"Each profiler_entry is a tuple-like object with the\n" 157db96d56Sopenharmony_ci"following attributes:\n" 167db96d56Sopenharmony_ci"\n" 177db96d56Sopenharmony_ci" code code object\n" 187db96d56Sopenharmony_ci" callcount how many times this was called\n" 197db96d56Sopenharmony_ci" reccallcount how many times called recursively\n" 207db96d56Sopenharmony_ci" totaltime total time in this entry\n" 217db96d56Sopenharmony_ci" inlinetime inline time in this entry (not in subcalls)\n" 227db96d56Sopenharmony_ci" calls details of the calls\n" 237db96d56Sopenharmony_ci"\n" 247db96d56Sopenharmony_ci"The calls attribute is either None or a list of\n" 257db96d56Sopenharmony_ci"profiler_subentry objects:\n" 267db96d56Sopenharmony_ci"\n" 277db96d56Sopenharmony_ci" code called code object\n" 287db96d56Sopenharmony_ci" callcount how many times this is called\n" 297db96d56Sopenharmony_ci" reccallcount how many times this is called recursively\n" 307db96d56Sopenharmony_ci" totaltime total time spent in this call\n" 317db96d56Sopenharmony_ci" inlinetime inline time (not in further subcalls)"); 327db96d56Sopenharmony_ci 337db96d56Sopenharmony_ci#define _LSPROF_PROFILER_GETSTATS_METHODDEF \ 347db96d56Sopenharmony_ci {"getstats", _PyCFunction_CAST(_lsprof_Profiler_getstats), METH_METHOD|METH_FASTCALL|METH_KEYWORDS, _lsprof_Profiler_getstats__doc__}, 357db96d56Sopenharmony_ci 367db96d56Sopenharmony_cistatic PyObject * 377db96d56Sopenharmony_ci_lsprof_Profiler_getstats_impl(ProfilerObject *self, PyTypeObject *cls); 387db96d56Sopenharmony_ci 397db96d56Sopenharmony_cistatic PyObject * 407db96d56Sopenharmony_ci_lsprof_Profiler_getstats(ProfilerObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) 417db96d56Sopenharmony_ci{ 427db96d56Sopenharmony_ci if (nargs) { 437db96d56Sopenharmony_ci PyErr_SetString(PyExc_TypeError, "getstats() takes no arguments"); 447db96d56Sopenharmony_ci return NULL; 457db96d56Sopenharmony_ci } 467db96d56Sopenharmony_ci return _lsprof_Profiler_getstats_impl(self, cls); 477db96d56Sopenharmony_ci} 487db96d56Sopenharmony_ci/*[clinic end generated code: output=0615a53cce828f06 input=a9049054013a1b77]*/ 49