master
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.
13#
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.
17#
18# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19# KIND, either express or implied.
20#
21# SPDX-License-Identifier: curl
22#
23###########################################################################
24if(NOT WIN32)
25 message(FATAL_ERROR "This file should be included on Windows platform only")
26endif()
28if(MINGW)
29 set(HAVE_BASENAME 1)
30 set(HAVE_BOOL_T 1) # = HAVE_STDBOOL_H
31 set(HAVE_LIBGEN_H 1)
32 set(HAVE_STDBOOL_H 1)
33 set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size()
34 set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size()
35 set(HAVE_STRINGS_H 1) # wrapper to string.h
36 set(HAVE_SYS_PARAM_H 1)
37 set(HAVE_UNISTD_H 1)
38 set(HAVE_UTIME_H 1) # wrapper to sys/utime.h
39else()
40 set(HAVE_LIBGEN_H 0)
41 set(HAVE_STRINGS_H 0)
42 set(HAVE_SYS_PARAM_H 0)
43 set(HAVE_UTIME_H 0)
44 if(MSVC)
45 set(HAVE_BASENAME 0)
46 set(HAVE_STDDEF_H 1) # detected by CMake internally in check_type_size()
47 set(HAVE_STDINT_H 1) # detected by CMake internally in check_type_size()
48 if(MSVC_VERSION GREATER_EQUAL 1800)
49 set(HAVE_BOOL_T 1) # = HAVE_STDBOOL_H
50 set(HAVE_STDBOOL_H 1)
51 else()
52 set(HAVE_BOOL_T 0) # = HAVE_STDBOOL_H
53 set(HAVE_STDBOOL_H 0)
54 endif()
55 set(HAVE_UNISTD_H 0)
56 endif()
57endif()
59if((CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 4.9) OR
60 (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 3.6))
61 # MinGW or clang-cl
62 set(HAVE_STDATOMIC_H 1)
63 set(HAVE_ATOMIC 1)
64else()
65 set(HAVE_STDATOMIC_H 0)
66 set(HAVE_ATOMIC 0)
67endif()
69set(HAVE_ACCEPT4 0)
70set(HAVE_ALARM 0)
71set(HAVE_ARC4RANDOM 0)
72set(HAVE_ARPA_INET_H 0)
73set(HAVE_CLOSESOCKET 1)
74set(HAVE_EVENTFD 0)
75set(HAVE_FCNTL 0)
76set(HAVE_FCNTL_H 1)
77set(HAVE_FCNTL_O_NONBLOCK 0)
78set(HAVE_FNMATCH 0)
79set(HAVE_FREEADDRINFO 1) # Available in Windows XP and newer
80set(HAVE_FSETXATTR 0)
81set(HAVE_GETADDRINFO 1) # Available in Windows XP and newer
82set(HAVE_GETEUID 0)
83set(HAVE_GETHOSTBYNAME_R 0)
84set(HAVE_GETHOSTBYNAME_R_3 0)
85set(HAVE_GETHOSTBYNAME_R_3_REENTRANT 0)
86set(HAVE_GETHOSTBYNAME_R_5 0)
87set(HAVE_GETHOSTBYNAME_R_5_REENTRANT 0)
88set(HAVE_GETHOSTBYNAME_R_6 0)
89set(HAVE_GETHOSTBYNAME_R_6_REENTRANT 0)
90set(HAVE_GETHOSTNAME 1)
91set(HAVE_GETIFADDRS 0)
92set(HAVE_GETPASS_R 0)
93set(HAVE_GETPEERNAME 1)
94set(HAVE_GETPPID 0)
95set(HAVE_GETPWUID 0)
96set(HAVE_GETPWUID_R 0)
97set(HAVE_GETRLIMIT 0)
98set(HAVE_GETSOCKNAME 1)
99set(HAVE_GLIBC_STRERROR_R 0)
100set(HAVE_GMTIME_R 0)
101set(HAVE_IFADDRS_H 0)
102set(HAVE_IOCTLSOCKET 1)
103set(HAVE_IOCTLSOCKET_CAMEL 0)
104set(HAVE_IOCTLSOCKET_CAMEL_FIONBIO 0)
105set(HAVE_IOCTLSOCKET_FIONBIO 1)
106set(HAVE_IOCTL_FIONBIO 0)
107set(HAVE_IOCTL_SIOCGIFADDR 0)
108set(HAVE_IO_H 1)
109set(HAVE_LOCALE_H 1)
110set(HAVE_LOCALTIME_R 0)
111set(HAVE_MEMRCHR 0)
112set(HAVE_NETDB_H 0)
113set(HAVE_NETINET_IN6_H 0)
114set(HAVE_NETINET_IN_H 0)
115set(HAVE_NETINET_IP_H 0)
116set(HAVE_NETINET_TCP_H 0)
117set(HAVE_NETINET_UDP_H 0)
118set(HAVE_NET_IF_H 0)
119set(HAVE_PIPE 0)
120set(HAVE_PIPE2 0)
121set(HAVE_POLL 0)
122set(HAVE_POLL_H 0)
123set(HAVE_POSIX_STRERROR_R 0)
124set(HAVE_PWD_H 0)
125set(HAVE_RECV 1)
126set(HAVE_SEND 1)
127set(HAVE_SENDMMSG 0)
128set(HAVE_SENDMSG 0)
129set(HAVE_SETLOCALE 1)
130set(HAVE_SETRLIMIT 0)
131set(HAVE_SETSOCKOPT_SO_NONBLOCK 0)
132set(HAVE_SIGACTION 0)
133set(HAVE_SIGINTERRUPT 0)
134set(HAVE_SIGNAL 1)
135set(HAVE_SIGSETJMP 0)
136set(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1)
137set(HAVE_SOCKET 1)
138set(HAVE_SOCKETPAIR 0)
139set(HAVE_STRERROR_R 0)
140set(HAVE_STROPTS_H 0)
141set(HAVE_STRUCT_SOCKADDR_STORAGE 1)
142set(HAVE_STRUCT_TIMEVAL 1)
143set(HAVE_SYS_EVENTFD_H 0)
144set(HAVE_SYS_FILIO_H 0)
145set(HAVE_SYS_IOCTL_H 0)
146set(HAVE_SYS_POLL_H 0)
147set(HAVE_SYS_RESOURCE_H 0)
148set(HAVE_SYS_SELECT_H 0)
149set(HAVE_SYS_SOCKIO_H 0)
150set(HAVE_SYS_TYPES_H 1)
151set(HAVE_SYS_UN_H 0)
152set(HAVE_SYS_UTIME_H 1)
153set(HAVE_TERMIOS_H 0)
154set(HAVE_TERMIO_H 0)
155set(HAVE_TIME_T_UNSIGNED 0)
156set(HAVE_UTIME 1)
157set(HAVE_UTIMES 0)
159# Types and sizes
161set(HAVE_SIZEOF_SA_FAMILY_T 0)
162set(HAVE_SIZEOF_SUSECONDS_T 0)
164if(MINGW OR MSVC)
165 curl_prefill_type_size("INT" 4)
166 curl_prefill_type_size("LONG" 4)
167 curl_prefill_type_size("__INT64" 8)
168 curl_prefill_type_size("CURL_OFF_T" 8)
169 curl_prefill_type_size("CURL_SOCKET_T" ${CMAKE_SIZEOF_VOID_P})
170 curl_prefill_type_size("SIZE_T" ${CMAKE_SIZEOF_VOID_P})
171 # TIME_T: 8 for _WIN64 or UCRT or MSVC, 4 otherwise
172 # Also 4 for non-UCRT 32-bit when _USE_32BIT_TIME_T is set.
173 # mingw-w64 sets _USE_32BIT_TIME_T unless __MINGW_USE_VC2005_COMPAT is explicit defined.
174 if(MSVC)
175 set(HAVE_SIZEOF_SSIZE_T 0)
176 set(HAVE_FILE_OFFSET_BITS 0)
177 curl_prefill_type_size("OFF_T" 4)
178 else()
179 curl_prefill_type_size("SSIZE_T" ${CMAKE_SIZEOF_VOID_P})
180 set(HAVE_FILE_OFFSET_BITS 1) # mingw-w64 v3+
181 curl_prefill_type_size("OFF_T" 8) # mingw-w64 v3+
182 endif()
183endif()
Diagnostics4 git calls · 987 ms
CallStatusSizeTime0987 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 · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=982 git.response.bytes=293470 git.response.cache=HIT git.response.duration_ms=2 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=86Open pack map
fetch2001.9 KiB982 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=1901 git.response.cache=MISS git.response.duration_ms=982 git.fetch.wants=7a134c93d9206a7f9467bd11abd20c6090476b4e 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=1901 git.pkt.payload.max=1880 git.sideband.band1.bytes=1879 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
- a5e2e243cec34af4
- Request
- d7acc69d…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format