Codebergdnkl

foot

master
ply5 git calls64 ms24 KiB4 cachedprotocol v2
50 lines1.3 KiBRaw
1#pragma once
3#include <stdarg.h>
4#include <stddef.h>
5#include <string.h>
6#include <wchar.h>
7#include <uchar.h>
9#include "char32.h"
10#include "macros.h"
12void *xmalloc(size_t size) XMALLOC;
13void *xcalloc(size_t nmemb, size_t size) XMALLOC;
14void *xrealloc(void *ptr, size_t size);
15void *xreallocarray(void *ptr, size_t nmemb, size_t size);
16char *xstrdup(const char *str) XSTRDUP;
17char *xstrndup(const char *str, size_t n) XSTRDUP;
18char *xasprintf(const char *format, ...) PRINTF(1) XMALLOC;
19char *xvasprintf(const char *format, va_list va) VPRINTF(1) XMALLOC;
20char32_t *xc32dup(const char32_t *str) XSTRDUP;
22static inline void *
23xmemdup(const void *ptr, size_t size)
25 return memcpy(xmalloc(size), ptr, size);
28static inline char *
29xstrjoin(const char *s1, const char *s2)
31 size_t n1 = strlen(s1);
32 size_t n2 = strlen(s2);
33 char *joined = xmalloc(n1 + n2 + 1);
34 memcpy(joined, s1, n1);
35 memcpy(joined + n1, s2, n2 + 1);
36 return joined;
39static inline char *
40xstrjoin3(const char *s1, const char *s2, const char *s3)
42 size_t n1 = strlen(s1);
43 size_t n2 = strlen(s2);
44 size_t n3 = strlen(s3);
45 char *joined = xmalloc(n1 + n2 + n3 + 1);
46 memcpy(joined, s1, n1);
47 memcpy(joined + n1, s2, n2);
48 memcpy(joined + n1 + n2, s3, n3 + 1);
49 return joined;
Diagnostics5 git calls · 64 ms
CallStatusSizeTime064 ms
discover200178 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
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 KiB · hit3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=10322
git.response.cache=HIT
git.response.duration_ms=3
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
fetchtree:0 · deepen 102009.3 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=1
git.response.bytes=9489
git.response.cache=HIT
git.response.duration_ms=2
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
fetchtree:02003.6 KiB · hit6 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=3708
git.response.cache=HIT
git.response.duration_ms=6
git.fetch.filter=tree:0
git.fetch.wants=96f1228f4004ebd74530c7f0aea264108eff425f
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=3708
git.pkt.payload.max=3681
git.sideband.band1.bytes=3681
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=3681
git.pack.trailer=731a22f61f25bdfdca1691647f2056631bcfdcf1
Open pack map
fetch200461 B · hit25 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=24
git.response.bytes=461
git.response.cache=HIT
git.response.duration_ms=25
git.fetch.wants=33a17ca502c7719fd352391fe552a19e382c9b58
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=461
git.pkt.payload.max=434
git.sideband.band1.bytes=434
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
a5ea9321bde1a87d
Request
f68c34b7…
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