Lines Matching refs:sps
39 struct sps_bkt sps; member
103 struct sps_bkt *sps = &sip->sps; in sps_emit() local
104 double delta = sps->t_last - sps->t_start; in sps_emit()
106 if ((sps->nseeks == 1) || (delta < DBL_EPSILON)) { in sps_emit()
107 s_p_s = (double)(sps->nseeks); in sps_emit()
108 tstamp = sps->t_start; in sps_emit()
111 s_p_s = (double)(sps->nseeks) / delta; in sps_emit()
112 tstamp = sps->t_start + (delta / 2); in sps_emit()
115 fprintf(sip->sps_fp, "%15.9lf %.2lf\n", sps->t_start, s_p_s); in sps_emit()
117 sps->t_start = 0; in sps_emit()
118 sps->nseeks = 0; in sps_emit()
124 struct sps_bkt *sps = &sip->sps; in sps_add() local
126 if (sps->nseeks != 0 && ((t - sps->t_start) >= 1.0)) in sps_add()
129 sps->t_last = t; in sps_add()
130 if (sps->nseeks == 0) { in sps_add()
131 sps->t_start = t; in sps_add()
132 sps->nseeks = 1; in sps_add()
134 sps->nseeks++; in sps_add()
223 memset(&sip->sps, 0, sizeof(sip->sps)); in seeki_alloc()
241 if (sip->sps_fp && sip->sps.nseeks != 0) in seeki_free()