Artifactspublic-v0

curl

master
ply4 git calls23 ms289 KiB3 cachedprotocol v2
196 lines6.4 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###########################################################################
24@PACKAGE_INIT@
26option(CURL_USE_CMAKECONFIG "Enable detecting @PROJECT_NAME@ dependencies via CMake Config. Default: @CURL_USE_CMAKECONFIG@"
27 "@CURL_USE_CMAKECONFIG@")
28option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @CURL_USE_PKGCONFIG@"
29 "@CURL_USE_PKGCONFIG@")
31if(CMAKE_VERSION VERSION_LESS @CMAKE_MINIMUM_REQUIRED_VERSION@)
32 message(STATUS "@PROJECT_NAME@: @PROJECT_NAME@-specific Find modules require "
33 "CMake @CMAKE_MINIMUM_REQUIRED_VERSION@ or greater, found: ${CMAKE_VERSION}.")
34endif()
36include(CMakeFindDependencyMacro)
38if("@HAVE_THREADS_POSIX@" OR "@HAVE_THREADS_POSIX_BORINGSSL@")
39 find_dependency(Threads) # for Threads::Threads
40endif()
42if("@USE_OPENSSL@")
43 if("@OPENSSL_VERSION_MAJOR@")
44 find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
45 else()
46 find_dependency(OpenSSL)
47 endif()
48 # Define lib duplicate to fixup lib order for GCC binutils ld in static builds
49 if(TARGET OpenSSL::Crypto AND NOT TARGET CURL::OpenSSL_Crypto)
50 add_library(CURL::OpenSSL_Crypto INTERFACE IMPORTED)
51 set_target_properties(CURL::OpenSSL_Crypto PROPERTIES INTERFACE_LINK_LIBRARIES OpenSSL::Crypto)
52 endif()
53endif()
54if("@HAVE_LIBZ@")
55 find_dependency(ZLIB "@ZLIB_VERSION_MAJOR@")
56 # Define lib duplicate to fixup lib order for GCC binutils ld in static builds
57 if(TARGET ZLIB::ZLIB AND NOT TARGET CURL::ZLIB)
58 add_library(CURL::ZLIB INTERFACE IMPORTED)
59 set_target_properties(CURL::ZLIB PROPERTIES INTERFACE_LINK_LIBRARIES ZLIB::ZLIB)
60 endif()
61endif()
63set(_curl_cmake_module_path_save ${CMAKE_MODULE_PATH})
64list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
66set(_curl_libs "")
68if("@HAVE_BROTLI@")
69 find_dependency(Brotli MODULE)
70 list(APPEND _curl_libs CURL::brotli)
71endif()
72if("@USE_ARES@")
73 find_dependency(Cares MODULE)
74 list(APPEND _curl_libs CURL::cares)
75endif()
76if("@HAVE_GSSAPI@")
77 find_dependency(GSS MODULE COMPONENTS "@GSS_FLAVOR@")
78 list(APPEND _curl_libs CURL::gss)
79endif()
80if("@USE_BACKTRACE@")
81 find_dependency(Libbacktrace MODULE)
82 list(APPEND _curl_libs CURL::libbacktrace)
83endif()
84if("@USE_GSASL@")
85 find_dependency(Libgsasl MODULE)
86 list(APPEND _curl_libs CURL::libgsasl)
87endif()
88if(NOT "@USE_WIN32_LDAP@" AND NOT "@CURL_DISABLE_LDAP@")
89 find_dependency(LDAP MODULE)
90 list(APPEND _curl_libs CURL::ldap)
91endif()
92if("@HAVE_LIBIDN2@")
93 find_dependency(Libidn2 MODULE)
94 list(APPEND _curl_libs CURL::libidn2)
95endif()
96if("@USE_LIBPSL@")
97 find_dependency(Libpsl MODULE)
98 list(APPEND _curl_libs CURL::libpsl)
99endif()
100if("@USE_LIBSSH@")
101 find_dependency(Libssh MODULE)
102 list(APPEND _curl_libs CURL::libssh)
103endif()
104if("@USE_LIBSSH2@")
105 find_dependency(Libssh2 MODULE)
106 list(APPEND _curl_libs CURL::libssh2)
107endif()
108if("@USE_LIBUV@")
109 find_dependency(Libuv MODULE)
110 list(APPEND _curl_libs CURL::libuv)
111endif()
112if("@USE_MBEDTLS@")
113 find_dependency(MbedTLS MODULE)
114 list(APPEND _curl_libs CURL::mbedtls)
115endif()
116if("@USE_NGHTTP2@")
117 find_dependency(NGHTTP2 MODULE)
118 list(APPEND _curl_libs CURL::nghttp2)
119endif()
120if("@USE_NGHTTP3@")
121 find_dependency(NGHTTP3 MODULE)
122 list(APPEND _curl_libs CURL::nghttp3)
123endif()
124if("@USE_NGTCP2@")
125 find_dependency(NGTCP2 MODULE COMPONENTS "@NGTCP2_CRYPTO_BACKEND@")
126 list(APPEND _curl_libs CURL::ngtcp2)
127endif()
128if("@USE_GNUTLS@")
129 find_dependency(GnuTLS MODULE)
130 list(APPEND _curl_libs CURL::gnutls)
131 find_dependency(Nettle MODULE)
132 list(APPEND _curl_libs CURL::nettle)
133endif()
134if("@USE_QUICHE@")
135 find_dependency(Quiche MODULE)
136 list(APPEND _curl_libs CURL::quiche)
137endif()
138if("@USE_RUSTLS@")
139 find_dependency(Rustls MODULE)
140 list(APPEND _curl_libs CURL::rustls)
141endif()
142if("@USE_WOLFSSL@")
143 find_dependency(WolfSSL MODULE)
144 list(APPEND _curl_libs CURL::wolfssl)
145endif()
146if("@HAVE_ZSTD@")
147 find_dependency(Zstd MODULE)
148 list(APPEND _curl_libs CURL::zstd)
149endif()
151set(CMAKE_MODULE_PATH ${_curl_cmake_module_path_save})
153# Define lib duplicate to fixup lib order for GCC binutils ld in static builds
154if(WIN32 AND NOT TARGET CURL::win32_winsock)
155 add_library(CURL::win32_winsock INTERFACE IMPORTED)
156 set_target_properties(CURL::win32_winsock PROPERTIES INTERFACE_LINK_LIBRARIES "ws2_32")
157endif()
159include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
161# Alias for either shared or static library
162if(NOT TARGET @PROJECT_NAME@::@LIB_NAME@)
163 add_library(@PROJECT_NAME@::@LIB_NAME@ ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
164endif()
166# For compatibility with CMake's FindCURL.cmake
167set(CURL_VERSION_STRING "@CURLVERSION@")
168set(CURL_LIBRARIES @PROJECT_NAME@::@LIB_NAME@)
169set(CURL_LIBRARIES_PRIVATE "@LIBCURL_PC_LIBS_PRIVATE_LIST@")
170set_and_check(CURL_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
172set(CURL_SUPPORTED_PROTOCOLS "@CURL_SUPPORTED_PROTOCOLS_LIST@")
173set(CURL_SUPPORTED_FEATURES "@CURL_SUPPORTED_FEATURES_LIST@")
175foreach(_curl_item IN LISTS CURL_SUPPORTED_PROTOCOLS CURL_SUPPORTED_FEATURES)
176 set(CURL_SUPPORTS_${_curl_item} TRUE)
177endforeach()
179set(_curl_missing_req "")
180foreach(_curl_item IN LISTS CURL_FIND_COMPONENTS)
181 if(CURL_SUPPORTS_${_curl_item})
182 set(CURL_${_curl_item}_FOUND TRUE)
183 elseif(CURL_FIND_REQUIRED_${_curl_item})
184 list(APPEND _curl_missing_req ${_curl_item})
185 endif()
186endforeach()
188if(_curl_missing_req)
189 string(REPLACE ";" " " _curl_missing_req "${_curl_missing_req}")
190 if(CURL_FIND_REQUIRED)
191 message(FATAL_ERROR "@PROJECT_NAME@: missing required components: ${_curl_missing_req}")
192 endif()
193 unset(_curl_missing_req)
194endif()
196check_required_components("@PROJECT_NAME@")
Diagnostics4 git calls · 23 ms
CallStatusSizeTime023 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 · 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=3
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
fetch2002.1 KiB · hit18 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=18
git.response.bytes=2165
git.response.cache=HIT
git.response.duration_ms=18
git.fetch.wants=ee49478d5fbc3d793fbc232d295e85adec5bbd9d
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=2165
git.pkt.payload.max=2144
git.sideband.band1.bytes=2143
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
a5e35bfa2e54dfff
Request
dd42f67a…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format