• Home
  • Raw
  • Download

Lines Matching refs:pub

201 lws_metrics_om_format_agg(lws_metric_pub_t *pub, const char *nm, lws_usec_t now,  in lws_metrics_om_format_agg()  argument
207 if (pub->flags & LWSMTFL_REPORT_ONLY_GO) in lws_metrics_om_format_agg()
210 if (!(pub->flags & LWSMTFL_REPORT_MEAN)) { in lws_metrics_om_format_agg()
212 if (pub->flags & LWSMTFL_REPORT_DUTY_WALLCLOCK_US) { in lws_metrics_om_format_agg()
217 nm, (unsigned int)pub->u.agg.count[gng], in lws_metrics_om_format_agg()
218 nm, (unsigned long long)pub->u.agg.sum[gng], in lws_metrics_om_format_agg()
219 nm, (unsigned long)(pub->us_first / 1000000), in lws_metrics_om_format_agg()
220 (unsigned int)(pub->us_first % 1000000)); in lws_metrics_om_format_agg()
230 (unsigned int)pub->u.agg.count[gng], in lws_metrics_om_format_agg()
232 (unsigned long long)pub->u.agg.sum[gng]); in lws_metrics_om_format_agg()
239 (unsigned int)pub->u.agg.count[gng], in lws_metrics_om_format_agg()
241 (pub->u.agg.count[gng] ? in lws_metrics_om_format_agg()
242 pub->u.agg.sum[gng] / in lws_metrics_om_format_agg()
243 pub->u.agg.count[gng] : 0)); in lws_metrics_om_format_agg()
273 lws_metrics_om_format(struct pss *pss, lws_metric_pub_t *pub, const char *nm) in lws_metrics_om_format() argument
278 if (pub->flags & LWSMTFL_REPORT_HIST) { in lws_metrics_om_format()
279 lws_metric_bucket_t *buck = pub->u.hist.head; in lws_metrics_om_format()
284 pub->u.hist.total_count); in lws_metrics_om_format()
304 if (!pub->u.agg.count[METRES_GO] && !pub->u.agg.count[METRES_NOGO]) in lws_metrics_om_format()
307 if (pub->u.agg.count[METRES_GO]) in lws_metrics_om_format()
308 p += lws_metrics_om_format_agg(pub, nm, t, METRES_GO, p, in lws_metrics_om_format()
311 if (!(pub->flags & LWSMTFL_REPORT_ONLY_GO) && in lws_metrics_om_format()
312 pub->u.agg.count[METRES_NOGO]) in lws_metrics_om_format()
313 p += lws_metrics_om_format_agg(pub, nm, t, METRES_NOGO, p, in lws_metrics_om_format()
316 if (pub->flags & LWSMTFL_REPORT_MEAN) in lws_metrics_om_format()
320 nm, (unsigned long long)pub->u.agg.min, in lws_metrics_om_format()
321 nm, (unsigned long long)pub->u.agg.max); in lws_metrics_om_format()
328 append_om_metric(lws_metric_pub_t *pub, void *user) in append_om_metric() argument
342 lws_strncpy(nm, pub->name, sizeof(nm)); in append_om_metric()
347 return lws_metrics_om_format(pss, pub, nm); in append_om_metric()