MCPcopy Create free account
hub / github.com/F-Stack/f-stack / print_stats

Function print_stats

dpdk/app/test-pmd/testpmd.c:4503–4518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4501}
4502
4503static void
4504print_stats(void)
4505{
4506 uint8_t i;
4507 const char clr[] = { 27, '[', '2', 'J', '\0' };
4508 const char top_left[] = { 27, '[', '1', ';', '1', 'H', '\0' };
4509
4510 /* Clear screen and move to top left */
4511 printf("%s%s", clr, top_left);
4512
4513 printf("\nPort statistics ====================================");
4514 for (i = 0; i < cur_fwd_config.nb_fwd_ports; i++)
4515 nic_stats_display(fwd_ports_ids[i]);
4516
4517 fflush(stdout);
4518}
4519
4520static void
4521signal_handler(int signum __rte_unused)

Callers 1

mainFunction · 0.70

Calls 2

nic_stats_displayFunction · 0.70
printfFunction · 0.50

Tested by

no test coverage detected