Artifactspublic-v0

curl

master
ply4 git calls32 ms290 KiB3 cachedprotocol v2
241 lines7.8 KiBRaw
1#***************************************************************************
2# _ _ ____ _
3# Project ___| | | | _ \| |
4# / __| | | | |_) | |
5# | (__| |_| | _ <| |___
6# \___|\___/|_| \_\_____|
7#
8# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
9#
10# This software is licensed as described in the file COPYING, which
11# you should have received as part of this distribution. The terms
12# are also available at https://curl.se/docs/copyright.html.
14# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15# copies of the Software, and permit persons to whom the Software is
16# furnished to do so, under the terms of the COPYING file.
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
21# SPDX-License-Identifier: curl
23###########################################################################
24AUTOMAKE_OPTIONS = foreign nostdinc
26# remove targets if the command fails
27.DELETE_ON_ERROR:
29# Get CURL_CFILES, CURL_HFILES, CURLX_CFILES, CURLX_HFILES, CURL_RCFILES variables
30include Makefile.inc
32EXTRA_DIST = CMakeLists.txt .checksrc mk-file-embed.pl mkhelp.pl $(CURL_RCFILES)
34# Specify our include paths here, and do it relative to $(top_srcdir) and
35# $(top_builddir), to ensure that these paths which belong to the library
36# being currently built and tested are searched before the library which
37# might possibly already be installed in the system.
39# $(top_srcdir)/include is for libcurl's external include files
40# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
41# $(top_srcdir)/lib for libcurl's lib/curl_setup.h and other "borrowed" files
42# $(srcdir) for generated sources to find included sources
44AM_CPPFLAGS = -I$(top_srcdir)/include \
45 -I$(top_builddir)/lib \
46 -I$(top_srcdir)/lib \
47 -I$(srcdir)
49bin_PROGRAMS = curl
51curlinfo_SOURCES = curlinfo.c
52noinst_PROGRAMS = curlinfo
54if USE_CPPFLAG_CURL_STATICLIB
55AM_CPPFLAGS += -DCURL_STATICLIB
56endif
57if DEBUGBUILD
58AM_CPPFLAGS += -DDEBUGBUILD
59endif
61if USE_UNICODE
62UNICODEFLAG = -municode
63endif
65curl_cfiles_gen =
66curl_hfiles_gen =
67CLEANFILES =
69if USE_CPPFLAG_CURL_STATICLIB
70curlx_csrc =
71curlx_hsrc =
72else
73# These are part of the libcurl static lib. Add them here when linking shared.
74curlx_csrc = $(CURLX_CFILES)
75curlx_hsrc = $(CURLX_HFILES)
76endif
78if USE_UNITY
79curltool_unity.c: $(top_srcdir)/scripts/mk-unity.pl $(CURL_CFILES) $(curl_cfiles_gen) $(curlx_csrc)
80 @PERL@ $(top_srcdir)/scripts/mk-unity.pl --include $(CURL_CFILES) $(curl_cfiles_gen) $(curlx_csrc) > curltool_unity.c
82nodist_curl_SOURCES = curltool_unity.c
83curl_SOURCES =
84CLEANFILES += curltool_unity.c
85else
86curl_SOURCES = $(CURL_CFILES) $(CURL_HFILES) $(curl_cfiles_gen) $(curl_hfiles_gen) $(curlx_csrc) $(curlx_hsrc)
87endif
88if HAVE_WINDRES
89curl_SOURCES += $(CURL_RCFILES)
90$(CURL_RCFILES): tool_version.h
91endif
93curl_LDFLAGS = $(CURL_LDFLAGS_BIN) $(UNICODEFLAG)
95# This might hold -Werror
96CFLAGS += @CURL_CFLAG_EXTRAS@
98# Prevent LIBS from being used for all link targets
99LIBS = $(BLANK_AT_MAKETIME)
101curl_LDADD = $(top_builddir)/lib/libcurl.la @LIBCURL_PC_LIBS_PRIVATE@
103# if unit tests are enabled, build a static library to link them with
104if BUILD_UNITTESTS
105noinst_LTLIBRARIES = libcurltool.la
106libcurltool_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
107libcurltool_la_CFLAGS =
108libcurltool_la_LDFLAGS = -static $(LIBCURL_PC_LIBS_PRIVATE)
109if USE_UNITY
110libcurltool_unity.c: $(top_srcdir)/scripts/mk-unity.pl $(CURL_CFILES) $(curlx_csrc)
111 @PERL@ $(top_srcdir)/scripts/mk-unity.pl --include $(CURL_CFILES) $(curlx_csrc) > libcurltool_unity.c
113nodist_libcurltool_la_SOURCES = libcurltool_unity.c
114libcurltool_la_SOURCES =
115CLEANFILES += libcurltool_unity.c
116else
117libcurltool_la_SOURCES = $(CURL_CFILES) $(CURL_HFILES) $(curlx_csrc) $(curlx_hsrc)
118endif
119endif
121# Use absolute directory to disable VPATH
122ASCIIPAGE=$(top_builddir)/docs/cmdline-opts/curl.txt
123MKHELP=$(top_srcdir)/src/mkhelp.pl
124HUGE=tool_hugehelp.c
126HUGECMD = $(HUGEIT_$(V))
127HUGEIT_0 = @echo " HUGE " $@;
128HUGEIT_1 =
129HUGEIT_ = $(HUGEIT_0)
131curl_CPPFLAGS = $(AM_CPPFLAGS)
133if USE_MANUAL
134# Here are the stuff to create a built-in manual
135curl_CPPFLAGS += -DUSE_MANUAL
137$(ASCIIPAGE):
138 cd $(top_builddir)/docs && $(MAKE)
140if PERL
141if HAVE_LIBZ
142# This generates the tool_hugehelp.c file in both uncompressed and
143# compressed formats.
144$(HUGE): $(ASCIIPAGE) $(MKHELP)
145 $(HUGECMD)( \
146 echo '/* !checksrc! disable COPYRIGHT all */' > $(HUGE); \
147 echo '/* !checksrc! disable INCLUDEDUP all */' >> $(HUGE); \
148 echo '/* !checksrc! disable LONGLINE all */' >> $(HUGE); \
149 echo '#include "tool_setup.h"' >> $(HUGE); \
150 echo '#ifndef HAVE_LIBZ' >> $(HUGE); \
151 @PERL@ $(MKHELP) < $(ASCIIPAGE) >> $(HUGE); \
152 echo '#else' >> $(HUGE); \
153 @PERL@ $(MKHELP) -c < $(ASCIIPAGE) >> $(HUGE); \
154 echo '#endif /* HAVE_LIBZ */' >> $(HUGE) )
155else # HAVE_LIBZ
156# This generates the tool_hugehelp.c file uncompressed only
157$(HUGE): $(ASCIIPAGE) $(MKHELP)
158 $(HUGECMD)( \
159 echo '/* !checksrc! disable COPYRIGHT all */' > $(HUGE); \
160 echo '#include "tool_setup.h"' >> $(HUGE); \
161 @PERL@ $(MKHELP) < $(ASCIIPAGE) >> $(HUGE) )
162endif
163else # PERL
164$(HUGE):
165 $(HUGECMD)( \
166 if test ! -f "$(srcdir)/$(HUGE)"; then \
167 echo '/* !checksrc! disable COPYRIGHT all */' > $(HUGE); \
168 echo '#include "tool_hugehelp.h"' >> $(HUGE); \
169 echo 'void hugehelp(void) {}' >> $(HUGE); \
170 echo 'void showhelp(const char *trigger, const char *arg, const char *endarg)' >> $(HUGE); \
171 echo '{' >> $(HUGE); \
172 echo ' (void)trigger; (void)arg; (void)endarg;' >> $(HUGE); \
173 echo '}' >> $(HUGE); \
174 fi)
175endif
177else # USE_MANUAL
178# built-in manual has been disabled, make a blank file
179$(HUGE):
180 echo '/* !checksrc! disable COPYRIGHT all */' > $(HUGE); \
181 echo '#include "tool_hugehelp.h"' >> $(HUGE)
182endif
184curl_cfiles_gen += $(HUGE)
185curl_hfiles_gen += tool_hugehelp.h
186CLEANFILES += $(HUGE)
188CA_EMBED_CSOURCE = tool_ca_embed.c
189curl_cfiles_gen += $(CA_EMBED_CSOURCE)
190CLEANFILES += $(CA_EMBED_CSOURCE)
191if CURL_CA_EMBED_SET
192curl_CPPFLAGS += -DCURL_CA_EMBED
193MK_FILE_EMBED = $(top_srcdir)/src/mk-file-embed.pl
194$(CA_EMBED_CSOURCE): $(MK_FILE_EMBED) $(CURL_CA_EMBED)
195 @PERL@ $(MK_FILE_EMBED) --var curl_ca_embed < $(CURL_CA_EMBED) > $(CA_EMBED_CSOURCE)
196else
197$(CA_EMBED_CSOURCE):
198 echo '/* !checksrc! disable COPYRIGHT all */' > $(CA_EMBED_CSOURCE)
199 echo 'extern const void *curl_ca_embed; const void *curl_ca_embed;' >> $(CA_EMBED_CSOURCE)
200endif
202CHECKSRC = $(CS_$(V))
203CS_0 = @echo " RUN " $@;
204CS_1 =
205CS_ = $(CS_0)
207# ignore generated C files since they play by slightly different rules!
208checksrc:
209 $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(CURL_CFILES) $(CURL_HFILES))
211if NOT_CURL_CI
212if DEBUGBUILD
213# for debug builds, we scan the sources on all regular make invokes
214all-local: checksrc
215endif
216endif
218_tidy_cflags =
219TIDYFLAGS =
220if CURL_WERROR
221TIDYFLAGS += '--warnings-as-errors=*'
222endif
223if CLANG
224_tidy_cflags += $(CFLAGS)
225endif
227tidy: $(HUGE) $(CA_EMBED_CSOURCE)
228 (_curl_cfiles=`echo ' $(CURL_CFILES)' | sed -e 's/ +/ /g' -e 's| | $(srcdir)/|g'`; \
229 @CLANG_TIDY@ --config-file=$(top_srcdir)/.clang-tidy.yml $(TIDYFLAGS) $(CURL_CLANG_TIDYFLAGS) $$_curl_cfiles $(curl_cfiles_gen) \
230 -- $(curl_CPPFLAGS) $(CPPFLAGS) $(AM_CPPFLAGS) -DHAVE_CONFIG_H $(_tidy_cflags))
232listhelp:
233 (cd $(top_srcdir)/docs/cmdline-opts && make listhelp)
235if HAVE_WINDRES
236.rc.o:
237 $(RC) -I$(top_srcdir)/include $(RCFLAGS) -i $< -o $@
238endif
240dist-hook:
241 rm -f $(distdir)/$(CA_EMBED_CSOURCE)
Diagnostics4 git calls · 32 ms
CallStatusSizeTime032 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
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 · hit5 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=293470
git.response.cache=HIT
git.response.duration_ms=5
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
fetch2002.8 KiB · hit24 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=2893
git.response.cache=HIT
git.response.duration_ms=24
git.fetch.wants=69554ee4900df14ea01f056a78f0e92574dc6c13
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=2893
git.pkt.payload.max=2872
git.sideband.band1.bytes=2871
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
a5e21d91ac6ca87d
Request
2b84392e…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format