FreeBSD/usr.sbin/pmcannotate/pmcannotate.c
/*
 * Specify a lower bound in percentage and drop from the
 * first-level aggregation queue all the objects with a
 * smaller impact.
 */
Specify a lower bound in percentage and drop from the
first-level aggregation queue all the objects with a
smaller impact.
Specify a lower bound in percentage and drop from the first - level aggregation queue all the objects with a smaller impact .
static void
fqueue_compact(float th)
{
	u_int thi;
	struct aggent *agg, *tmpagg;
	if (totalsamples == 0)
		return;
	thi = th * totalsamples / 100;
	TAILQ_FOREACH_SAFE(agg, &fqueue, ag_fiter, tmpagg)
		if (agg->ag_nsamples < thi)
			TAILQ_REMOVE(&fqueue, agg, ag_fiter);
}
static void fqueue_compact ( float th ) { u_int thi ; struct aggent * agg , * tmpagg ; if ( totalsamples == 0 ) return ; thi = th * totalsamples / 100 ; TAILQ_FOREACH_SAFE ( agg , & fqueue , ag_fiter , tmpagg ) if ( agg -> ag_nsamples < thi ) TAILQ_REMOVE ( & fqueue , agg , ag_fiter ) ; }
Specify a lower bound in percentage and drop from the
 first-level aggregation queue all the objects with a
 smaller impact.
Specify a lower bound in percentage and drop from the first - level aggregation queue all the objects with a smaller impact .
/* Revert the percentage calculation. */