Artifactspublic-v0

curl

master
ply4 git calls25 ms289 KiB3 cachedprotocol v2
162 lines3.9 KiBexecutableRaw
1#!/usr/bin/env perl
3use strict;
4use warnings;
6print <<HEAD
7/***************************************************************************
8 * _ _ ____ _
9 * Project ___| | | | _ \\| |
10 * / __| | | | |_) | |
11 * | (__| |_| | _ <| |___
12 * \\___|\\___/|_| \\_\\_____|
13 *
14 * Copyright (C) Daniel Stenberg, <daniel\@haxx.se>, et al.
15 *
16 * This software is licensed as described in the file COPYING, which
17 * you should have received as part of this distribution. The terms
18 * are also available at https://curl.se/docs/copyright.html.
19 *
20 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
21 * copies of the Software, and permit persons to whom the Software is
22 * furnished to do so, under the terms of the COPYING file.
23 *
24 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
25 * KIND, either express or implied.
26 *
27 * SPDX-License-Identifier: curl
28 *
29 ***************************************************************************/
31/* This source code is generated by optiontable.pl - DO NOT EDIT BY HAND */
33#include "curl_setup.h"
35#include "easyoptions.h"
37/* all easy setopt options listed in alphabetical order */
38const struct curl_easyoption Curl_easyopts[] = {
39HEAD
40 ;
42my $lastnum = 0;
44my %opt;
45my %type;
46my @names;
47my %alias;
49sub add {
50 my($optstr, $typestr, $num) = @_;
51 my $name;
52 # remove all spaces from the type
53 $typestr =~ s/ //g;
54 my $ext = $typestr;
56 if($optstr =~ /OBSOLETE/) {
57 # skip obsolete options
58 next;
59 }
61 if($optstr =~ /^CURLOPT_(.*)/) {
62 $name = $1;
63 }
64 $ext =~ s/CURLOPTTYPE_//;
65 $ext =~ s/CBPOINT/CBPTR/;
66 $ext =~ s/POINT\z//;
67 $typestr = "CURLOT_$ext";
69 $opt{$name} = $optstr;
70 $type{$name} = $typestr;
71 push @names, $name;
72 if($num < $lastnum) {
73 print STDERR "ERROR: $optstr has bad number: $num < $lastnum\n";
74 exit 2;
75 }
76 else {
77 $lastnum = $num;
78 }
81my $fl;
82my $file = shift @ARGV;
83open(CURL_H, '<', $file) or die;
84while(<CURL_H>) {
85 my $l = $_;
86 if($fl) {
87 # continued deprecation
88 if($l =~ /(.*)\),/) {
89 $fl .= $1;
91 # the end
92 my @p = split(/, */, $fl);
93 add($p[0], $p[1], $p[2]);
94 undef $fl;
95 }
96 else {
97 # another line to append
98 chomp $l;
99 $fl .= $l;
100 }
101 }
103 if(/^ *CURLOPTDEPRECATED\((.*)/) {
104 $fl = $1;
105 chomp $fl;
106 }
108 if(/^ *CURLOPT\(([^,]*), ([^,]*), (\d+)\)/) {
109 my($opt, $type, $num) = ($1, $2, $3);
110 add($opt, $type, $num);
111 }
113 # alias for an older option
114 # old = new
115 if(/^#define (CURLOPT_[^ ]*) *(CURLOPT_\S*)/) {
116 my ($o, $n) = ($1, $2);
117 # skip obsolete ones
118 if(($n !~ /OBSOLETE/) && ($o !~ /OBSOLETE/)) {
119 $o =~ s/^CURLOPT_//;
120 $n =~ s/^CURLOPT_//;
121 $alias{$o} = $n;
122 push @names, $o;
123 }
124 }
126close(CURL_H);
128for my $name (sort @names) {
129 my $oname = $name;
130 my $a = $alias{$name};
131 my $flag = "0";
132 if($a) {
133 $name = $alias{$name};
134 $flag = "CURLOT_FLAG_ALIAS";
135 }
136 my $o = sprintf(" { \"%s\", %s, %s, %s },\n",
137 $oname, $opt{$name}, $type{$name}, $flag);
138 if(length($o) < 80) {
139 print $o;
140 }
141 else {
142 printf(" { \"%s\", %s,\n %s, %s },\n",
143 $oname, $opt{$name}, $type{$name}, $flag);
144 }
147print <<FOOT
148 { NULL, CURLOPT_LASTENTRY, CURLOT_LONG, 0 } /* end of table */
149};
151#ifdef DEBUGBUILD
152/*
153 * Curl_easyopts_check() is a debug-only function that returns non-zero
154 * if this source file is not in sync with the options listed in curl/curl.h
155 */
156int Curl_easyopts_check(void)
158 return (CURLOPT_LASTENTRY % 10000) != ($lastnum + 1);
160#endif
161FOOT
162 ;
Diagnostics4 git calls · 25 ms
CallStatusSizeTime025 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
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 · hit2 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=149
git.response.cache=HIT
git.response.duration_ms=2
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 · hit3 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=293470
git.response.cache=HIT
git.response.duration_ms=3
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.7 KiB · hit20 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1791
git.response.cache=HIT
git.response.duration_ms=20
git.fetch.wants=de6fb55151f2f370872d660fb0463c2f95ca7849
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=1791
git.pkt.payload.max=1770
git.sideband.band1.bytes=1769
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
a5e273e78da2d806
Request
252ab774…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format