app/flow-perf: split dump functions
authorDong Zhou <dongzhou@nvidia.com>
Tue, 19 Jan 2021 03:39:39 +0000 (05:39 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 26 Jan 2021 15:52:17 +0000 (16:52 +0100)
commitd8099d7ecbd05813e31bb32180e8f3bc898c5688
treeeeaa2f5a8acdcd928cf9c7d6002eae744affb4ba
parent3be167dbf004cc97269b1b3d96695e955d3f36f1
app/flow-perf: split dump functions

The app will calculate and output used CPU time for flow insertion rate.
It's also needed for some new insertion items, such as meter.
It's better to split this calculation and output part to a single function,
so that all new insertion items can use it.

Signed-off-by: Dong Zhou <dongzhou@nvidia.com>
Reviewed-by: Wisam Jaddo <wisamm@nvidia.com>
Reviewed-by: Alexander Kozyrev <akozyrev@nvidia.com>
app/test-flow-perf/main.c