Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib: Use event name instead of thread #15105

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static void cpu_record_print(struct vty *vty, uint8_t filter)
"Active Runtime(ms) Invoked Avg uSec Max uSecs");
vty_out(vty, " Avg uSec Max uSecs");
vty_out(vty,
" CPU_Warn Wall_Warn Starv_Warn Type Thread\n");
" CPU_Warn Wall_Warn Starv_Warn Type Event\n");

if (cpu_records_count(m->cpu_records)) {
struct cpu_event_history *rec;
Expand All @@ -227,13 +227,13 @@ static void cpu_record_print(struct vty *vty, uint8_t filter)
}

vty_out(vty, "\n");
vty_out(vty, "Total thread statistics\n");
vty_out(vty, "Total Event statistics\n");
vty_out(vty, "-------------------------\n");
vty_out(vty, "%30s %18s %18s\n", "",
"CPU (user+system):", "Real (wall-clock):");
vty_out(vty, "Active Runtime(ms) Invoked Avg uSec Max uSecs");
vty_out(vty, " Avg uSec Max uSecs CPU_Warn Wall_Warn");
vty_out(vty, " Type Thread\n");
vty_out(vty, " Avg uSec Max uSecs CPU_Warn Wall_Warn Starv_Warn");
vty_out(vty, " Type Event\n");

if (tmp.total_calls > 0)
vty_out_cpu_event_history(vty, &tmp);
Expand Down
Loading