Artifactspublic-v0

curl

master
ply4 git calls64 ms288 KiB3 cachedprotocol v2
93 lines3.7 KiBRaw
1#ifndef HEADER_CURL_PROGRESS_H
2#define HEADER_CURL_PROGRESS_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 * SPDX-License-Identifier: curl
24 *
25 ***************************************************************************/
26#include "curlx/timeval.h"
28struct Curl_easy;
30typedef enum {
31 TIMER_NONE,
32 TIMER_STARTOP,
33 TIMER_STARTSINGLE, /* start of transfer, might get queued */
34 TIMER_POSTQUEUE, /* start, immediately after dequeue */
35 TIMER_NAMELOOKUP,
36 TIMER_CONNECT,
37 TIMER_APPCONNECT,
38 TIMER_PRETRANSFER,
39 TIMER_STARTTRANSFER,
40 TIMER_POSTRANSFER,
41 TIMER_REDIRECT,
42 TIMER_LAST /* must be last */
43} timerid;
45/* Get the current timestamp of the transfer */
46const struct curltime *Curl_pgrs_now(struct Curl_easy *data);
48int Curl_pgrsDone(struct Curl_easy *data, const struct curltime *pnow);
49void Curl_pgrsStart(struct Curl_easy *data, const struct curltime *pnow);
50void Curl_pgrsSetDownloadSize(struct Curl_easy *data, curl_off_t size);
51void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size);
52CURLcode Curl_pgrs_deliver_check(struct Curl_easy *data, size_t delta);
53void Curl_pgrs_deliver_inc(struct Curl_easy *data, size_t delta);
54void Curl_pgrs_download_inc(struct Curl_easy *data, size_t delta);
55void Curl_pgrs_upload_inc(struct Curl_easy *data, size_t delta);
56void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size);
58/* perform progress update, invoking callbacks at intervals */
59CURLcode Curl_pgrsUpdate(struct Curl_easy *data);
60CURLcode Curl_pgrsUpdateX(struct Curl_easy *data, const struct curltime *pnow);
61/* perform progress update, no callbacks invoked */
62void Curl_pgrsUpdate_nometer(struct Curl_easy *data);
63/* perform progress update with callbacks and speed checks */
64CURLcode Curl_pgrsCheck(struct Curl_easy *data);
65CURLcode Curl_pgrsCheckX(struct Curl_easy *data, const struct curltime *pnow);
67/* Inform progress/speedcheck about receive/send pausing */
68void Curl_pgrsRecvPause(struct Curl_easy *data, bool enable);
69void Curl_pgrsSendPause(struct Curl_easy *data, bool enable);
71/* Reset sizes and counters for up- and download. */
72void Curl_pgrsReset(struct Curl_easy *data);
73/* Reset sizes for up- and download. */
74void Curl_pgrsResetTransferSizes(struct Curl_easy *data);
76void Curl_pgrsTime(struct Curl_easy *data, timerid timer);
77/**
78 * Update progress timer with the elapsed time from its start to `timestamp`.
79 * This allows updating timers later and is used by happy eyeballing, where
80 * we only want to record the winner's times.
81 */
82void Curl_pgrsTimeWas(struct Curl_easy *data, timerid timer,
83 struct curltime timestamp);
85void Curl_pgrsEarlyData(struct Curl_easy *data, curl_off_t sent);
87void Curl_pgrsCompleted(struct Curl_easy *data);
89timediff_t Curl_pgrs_since_ms(struct Curl_easy *data,
90 const struct curltime *pnow,
91 timerid timer);
93#endif /* HEADER_CURL_PROGRESS_H */
Diagnostics4 git calls · 64 ms
CallStatusSizeTime064 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B · 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=149
git.response.cache=HIT
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit25 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=293470
git.response.cache=HIT
git.response.duration_ms=25
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
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=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2001.3 KiB · hit36 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=36
git.response.bytes=1370
git.response.cache=HIT
git.response.duration_ms=36
git.fetch.wants=4554b34ca3f6f57d694bc5b9315742732b6cccc9
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=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1370
git.pkt.payload.max=1349
git.sideband.band1.bytes=1348
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://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e201873ab670b8
Request
01fbea32…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format