mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Add formats for pane written/skipped bytes for debugging.
This commit is contained in:
3
format.c
3
format.c
@ -2690,6 +2690,9 @@ format_defaults_pane(struct format_tree *ft, struct window_pane *wp)
|
|||||||
format_add(ft, "history_limit", "%u", gd->hlimit);
|
format_add(ft, "history_limit", "%u", gd->hlimit);
|
||||||
format_add_cb(ft, "history_bytes", format_cb_history_bytes);
|
format_add_cb(ft, "history_bytes", format_cb_history_bytes);
|
||||||
|
|
||||||
|
format_add(ft, "pane_written", "%zu", wp->written);
|
||||||
|
format_add(ft, "pane_skipped", "%zu", wp->skipped);
|
||||||
|
|
||||||
if (window_pane_index(wp, &idx) != 0)
|
if (window_pane_index(wp, &idx) != 0)
|
||||||
fatalx("index not found");
|
fatalx("index not found");
|
||||||
format_add(ft, "pane_index", "%u", idx);
|
format_add(ft, "pane_index", "%u", idx);
|
||||||
|
@ -174,6 +174,10 @@ screen_write_stop(struct screen_write_ctx *ctx)
|
|||||||
|
|
||||||
log_debug("%s: %u cells (%u written, %u skipped)", __func__,
|
log_debug("%s: %u cells (%u written, %u skipped)", __func__,
|
||||||
ctx->cells, ctx->written, ctx->skipped);
|
ctx->cells, ctx->written, ctx->skipped);
|
||||||
|
if (ctx->wp != NULL) {
|
||||||
|
ctx->wp->written += ctx->written;
|
||||||
|
ctx->wp->skipped += ctx->skipped;
|
||||||
|
}
|
||||||
|
|
||||||
if (ctx->sync) {
|
if (ctx->sync) {
|
||||||
screen_write_initctx(ctx, &ttyctx, 0);
|
screen_write_initctx(ctx, &ttyctx, 0);
|
||||||
|
2
tmux.1
2
tmux.1
@ -4450,6 +4450,7 @@ The following variables are available, where appropriate:
|
|||||||
.It Li "pane_pipe" Ta "" Ta "1 if pane is being piped"
|
.It Li "pane_pipe" Ta "" Ta "1 if pane is being piped"
|
||||||
.It Li "pane_right" Ta "" Ta "Right of pane"
|
.It Li "pane_right" Ta "" Ta "Right of pane"
|
||||||
.It Li "pane_search_string" Ta "" Ta "Last search string in copy mode"
|
.It Li "pane_search_string" Ta "" Ta "Last search string in copy mode"
|
||||||
|
.It Li "pane_skipped" Ta "" Ta "Bytes skipped as not visible in pane"
|
||||||
.It Li "pane_start_command" Ta "" Ta "Command pane started with"
|
.It Li "pane_start_command" Ta "" Ta "Command pane started with"
|
||||||
.It Li "pane_synchronized" Ta "" Ta "1 if pane is synchronized"
|
.It Li "pane_synchronized" Ta "" Ta "1 if pane is synchronized"
|
||||||
.It Li "pane_tabs" Ta "" Ta "Pane tab positions"
|
.It Li "pane_tabs" Ta "" Ta "Pane tab positions"
|
||||||
@ -4457,6 +4458,7 @@ The following variables are available, where appropriate:
|
|||||||
.It Li "pane_top" Ta "" Ta "Top of pane"
|
.It Li "pane_top" Ta "" Ta "Top of pane"
|
||||||
.It Li "pane_tty" Ta "" Ta "Pseudo terminal of pane"
|
.It Li "pane_tty" Ta "" Ta "Pseudo terminal of pane"
|
||||||
.It Li "pane_width" Ta "" Ta "Width of pane"
|
.It Li "pane_width" Ta "" Ta "Width of pane"
|
||||||
|
.It Li "pane_written" Ta "" Ta "Bytes written by pane (aside from redrawing)"
|
||||||
.It Li "pid" Ta "" Ta "Server PID"
|
.It Li "pid" Ta "" Ta "Server PID"
|
||||||
.It Li "popup_key" Ta "" Ta "Key pressed in popup"
|
.It Li "popup_key" Ta "" Ta "Key pressed in popup"
|
||||||
.It Li "popup_mouse_x" Ta "" Ta "Mouse X position in popup"
|
.It Li "popup_mouse_x" Ta "" Ta "Mouse X position in popup"
|
||||||
|
Reference in New Issue
Block a user