CreateIsoTimeString(&tval, timebuf, sizeof(timebuf));
json_object_set_new(js, "timestamp", json_string(timebuf));
- for (i = 0; i < count; i++) {
+ for (i = 0; i < MIN(count, profiling_rules_limit); i++) {
/* Stop dumping when we hit our first rule with 0 checks. Due
* to sorting this will be the beginning of all the rules with
* 0 checks. */
# Sort options: ticks, avgticks, checks, matches, maxticks
sort: avgticks
- # Limit the number of items printed at exit (ignored for json).
+ # Limit the number of sids for which stats are shown at exit.
limit: 100
# output to json