Codebergdnkl

foot

master
ply5 git calls27 ms29 KiB3 cachedprotocol v2
50 lines1.8 KiBRaw
1#pragma once
3#include "terminal.h"
5#define SIXEL_MAX_COLORS 1024u
6#define SIXEL_MAX_WIDTH 10000u
7#define SIXEL_MAX_HEIGHT 10000u
9typedef void (*sixel_put)(struct terminal *term, uint8_t c);
11void sixel_fini(struct terminal *term);
13sixel_put sixel_init(struct terminal *term, int p1, int p2, int p3);
14void sixel_unhook(struct terminal *term);
16void sixel_destroy(struct sixel *sixel);
17void sixel_destroy_all(struct terminal *term);
19void sixel_scroll_up(struct terminal *term, int rows);
20void sixel_scroll_down(struct terminal *term, int rows);
22void sixel_cell_size_changed(struct terminal *term);
23void sixel_sync_cache(const struct terminal *term, struct sixel *sixel);
25void sixel_reflow_grid(struct terminal *term, struct grid *grid);
27/* Shortcut for sixel_reflow_grid(normal) + sixel_reflow_grid(alt) */
28void sixel_reflow(struct terminal *term);
30/*
31 * Remove sixel data from the specified location. Used when printing
32 * or erasing characters, and when emitting new sixel images, to
33 * remove sixel data that would otherwise be rendered on-top.
34 *
35 * Row numbers are relative to the current grid offset
36 */
37void sixel_overwrite_by_rectangle(
38 struct terminal *term, int row, int col, int height, int width);
39void sixel_overwrite_by_row(struct terminal *term, int row, int col, int width);
40void sixel_overwrite_at_cursor(struct terminal *term, int width);
42void sixel_colors_report_current(struct terminal *term);
43void sixel_colors_reset(struct terminal *term);
44void sixel_colors_set(struct terminal *term, unsigned count);
45void sixel_colors_report_max(struct terminal *term);
47void sixel_geometry_report_current(struct terminal *term);
48void sixel_geometry_reset(struct terminal *term);
49void sixel_geometry_set(struct terminal *term, unsigned width, unsigned height);
50void sixel_geometry_report_max(struct terminal *term);
Diagnostics5 git calls · 27 ms
CallStatusSizeTime027 ms
discover200178 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=4
git.response.bytes=178
git.server.agent=git/2.56.1-Linux
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch server-option object-format
git.server.fetch=shallow wait-for-done filter
git.protocol.version=2
git.pkt.frames=9
git.pkt.data=7
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=178
git.pkt.payload.max=35
ls-refs20010 KiB2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=10322
git.response.cache=UPDATING
git.response.duration_ms=2
git.protocol.version=2
git.pkt.frames=108
git.pkt.data=107
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=10322
git.pkt.payload.max=106
git.ls_refs.count=107
git.ls_refs.head=refs/heads/master
fetchcombine:blob:none+tree:2 · deepen 12008.6 KiB · hit3 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=8830
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=combine:blob:none+tree:2
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=1
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=8830
git.pkt.payload.max=8730
git.sideband.band1.bytes=8730
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=14
git.pack.bytes=8730
git.fetch.wide.objects=14
git.fetch.wide.extra_bytes=9909
git.fetch.wide.blobs=0
fetchtree:0 · deepen 102009.3 KiB · hit4 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=20
git.response.bytes=9489
git.response.cache=HIT
git.response.duration_ms=4
git.fetch.filter=tree:0
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=9489
git.pkt.payload.max=9389
git.sideband.band1.bytes=9389
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=10
git.pack.bytes=9389
git.pack.ofs_delta=0
git.pack.ref_delta=0
git.pack.chain.max=0
git.pack.trailer=de930681b6073ba5b599a0f956bfbd114762ad5a
git.pack.full=10
Open pack map
fetch200653 B · hit20 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=653
git.response.cache=HIT
git.response.duration_ms=20
git.fetch.wants=ab8a5050729d7f121e90518940056b17936790e7
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=653
git.pkt.payload.max=626
git.sideband.band1.bytes=626
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://codeberg.org/dnkl/foot
Ref
refs/heads/master
Commit
c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
cf-ray
a5e15f5b8a15725b
Request
fb8da988…
Protocol
v2 · sha1
Agent
git/2.56.1-Linux
Filter
advertised
Fetch
shallow wait-for-done filter
Capabilities
agent ls-refs fetch server-option object-format