|
|
@ -152,6 +152,7 @@ void notcurses_stats_reset(notcurses* nc, ncstats* stats){
|
|
|
|
stash->appsync_updates += nc->stats.s.appsync_updates;
|
|
|
|
stash->appsync_updates += nc->stats.s.appsync_updates;
|
|
|
|
stash->input_errors += nc->stats.s.input_errors;
|
|
|
|
stash->input_errors += nc->stats.s.input_errors;
|
|
|
|
stash->input_events += nc->stats.s.input_events;
|
|
|
|
stash->input_events += nc->stats.s.input_events;
|
|
|
|
|
|
|
|
stash->hpa_gratuitous += nc->stats.s.hpa_gratuitous;
|
|
|
|
|
|
|
|
|
|
|
|
stash->fbbytes = nc->stats.s.fbbytes;
|
|
|
|
stash->fbbytes = nc->stats.s.fbbytes;
|
|
|
|
stash->planes = nc->stats.s.planes;
|
|
|
|
stash->planes = nc->stats.s.planes;
|
|
|
@ -208,18 +209,21 @@ void summarize_stats(notcurses* nc){
|
|
|
|
stats->input_events,
|
|
|
|
stats->input_events,
|
|
|
|
stats->input_events == 1 ? "" : "s");
|
|
|
|
stats->input_events == 1 ? "" : "s");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fprintf(stderr, "%s%"PRIu64" failed render%s, %"PRIu64" failed raster%s, %"PRIu64" refresh%s, %"PRIu64" input error%s" NL,
|
|
|
|
fprintf(stderr, "%s%"PRIu64" failed render%s, %"PRIu64" failed raster%s, %"
|
|
|
|
|
|
|
|
PRIu64" refresh%s, %"PRIu64" input error%s" NL,
|
|
|
|
clreol, stats->failed_renders, stats->failed_renders == 1 ? "" : "s",
|
|
|
|
clreol, stats->failed_renders, stats->failed_renders == 1 ? "" : "s",
|
|
|
|
stats->failed_writeouts, stats->failed_writeouts == 1 ? "" : "s",
|
|
|
|
stats->failed_writeouts, stats->failed_writeouts == 1 ? "" : "s",
|
|
|
|
stats->refreshes, stats->refreshes == 1 ? "" : "es",
|
|
|
|
stats->refreshes, stats->refreshes == 1 ? "" : "es",
|
|
|
|
stats->input_errors, stats->input_errors == 1 ? "" : "s");
|
|
|
|
stats->input_errors, stats->input_errors == 1 ? "" : "s");
|
|
|
|
fprintf(stderr, "%sRGB emits:elides: def %"PRIu64":%"PRIu64" fg %"PRIu64":%"PRIu64" bg %"PRIu64":%"PRIu64"" NL,
|
|
|
|
fprintf(stderr, "%sRGB emits:elides: def %"PRIu64":%"PRIu64" fg %"PRIu64":%"
|
|
|
|
|
|
|
|
PRIu64" bg %"PRIu64":%"PRIu64" Ghpa: %"PRIu64 NL,
|
|
|
|
clreol, stats->defaultemissions,
|
|
|
|
clreol, stats->defaultemissions,
|
|
|
|
stats->defaultelisions,
|
|
|
|
stats->defaultelisions,
|
|
|
|
stats->fgemissions,
|
|
|
|
stats->fgemissions,
|
|
|
|
stats->fgelisions,
|
|
|
|
stats->fgelisions,
|
|
|
|
stats->bgemissions,
|
|
|
|
stats->bgemissions,
|
|
|
|
stats->bgelisions);
|
|
|
|
stats->bgelisions,
|
|
|
|
|
|
|
|
stats->hpa_gratuitous);
|
|
|
|
fprintf(stderr, "%sCell emits:elides: %"PRIu64":%"PRIu64" (%.2f%%) %.2f%% %.2f%% %.2f%%" NL,
|
|
|
|
fprintf(stderr, "%sCell emits:elides: %"PRIu64":%"PRIu64" (%.2f%%) %.2f%% %.2f%% %.2f%%" NL,
|
|
|
|
clreol, stats->cellemissions, stats->cellelisions,
|
|
|
|
clreol, stats->cellemissions, stats->cellelisions,
|
|
|
|
(stats->cellemissions + stats->cellelisions) == 0 ? 0 :
|
|
|
|
(stats->cellemissions + stats->cellelisions) == 0 ? 0 :
|
|
|
|