Lines Matching refs:collect
520 statscollector_t *collect = (statscollector_t*) arg;
524 sinfo = PyObject_CallFunction((PyObject*) collect->state->stats_subentry_type,
529 collect->factor * sentry->tt,
530 collect->factor * sentry->it);
533 err = PyList_Append(collect->sublist, sinfo);
541 statscollector_t *collect = (statscollector_t*) arg;
548 collect->sublist = PyList_New(0);
549 if (collect->sublist == NULL)
552 statsForSubEntry, collect) != 0) {
553 Py_DECREF(collect->sublist);
559 collect->sublist = Py_None;
562 info = PyObject_CallFunction((PyObject*) collect->state->stats_entry_type,
567 collect->factor * entry->tt,
568 collect->factor * entry->it,
569 collect->sublist);
570 Py_DECREF(collect->sublist);
573 err = PyList_Append(collect->list, info);
612 statscollector_t collect;
613 collect.state = PyType_GetModuleState(cls);
619 collect.factor = (double)1 / onesec;
622 collect.factor = self->externalTimerUnit;
625 collect.list = PyList_New(0);
626 if (collect.list == NULL)
628 if (RotatingTree_Enum(self->profilerEntries, statsForEntry, &collect)
630 Py_DECREF(collect.list);
633 return collect.list;