Reworks counting of skipped flow lua calls

This commit is contained in:
Simone Mainardi 2019-11-11 18:22:22 +01:00
parent 739c87a52d
commit 47169b82be
9 changed files with 126 additions and 37 deletions

View file

@ -20,11 +20,13 @@ function ts_dump.iface_update_periodic_ht_state_update_stats(when, ifid, periodi
num_ms = stats["tot_duration_ms"]
end
ts_utils.append("ht:num_missed_calls", {ifid = ifid, hash_table = ht_name,
idle = stats.num_missed_idle,
proto_detected = stats.num_missed_proto_detected,
periodic_update = stats.num_missed_periodic_update,
}, when, verbose)
if stats.num_skipped_idle ~= nil then
ts_utils.append("ht:num_skipped_calls", {ifid = ifid, hash_table = ht_name,
idle = stats.num_skipped_idle,
proto_detected = stats.num_skipped_proto_detected,
periodic_update = stats.num_skipped_periodic_update,
}, when, verbose)
end
end
ts_utils.append("ht:duration", {ifid = ifid, hash_table = ht_name, num_ms = num_ms}, when, verbose)