Artifactspublic-v0

curl

master
ply4 git calls26 ms288 KiB3 cachedprotocol v2
118 lines4.5 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# Find the libssh library
26# Input variables:
28# - `LIBSSH_INCLUDE_DIR`: Absolute path to libssh include directory.
29# - `LIBSSH_LIBRARY`: Absolute path to `libssh` library.
30# - `LIBSSH_USE_STATIC_LIBS`: Configure for static libssh libraries.
32# Defines:
34# - `LIBSSH_FOUND`: System has libssh.
35# - `LIBSSH_VERSION`: Version of libssh.
36# - `CURL::libssh`: libssh library target.
38set(_libssh_pc_requires "libssh")
40if(CURL_USE_PKGCONFIG AND
41 NOT DEFINED LIBSSH_INCLUDE_DIR AND
42 NOT DEFINED LIBSSH_LIBRARY)
43 find_package(PkgConfig QUIET)
44 pkg_check_modules(_libssh ${_libssh_pc_requires})
45endif()
47if(_libssh_FOUND)
48 set(Libssh_FOUND TRUE)
49 set(LIBSSH_FOUND TRUE)
50 set(LIBSSH_VERSION ${_libssh_VERSION})
51 if(LIBSSH_USE_STATIC_LIBS)
52 set(_libssh_CFLAGS "${_libssh_STATIC_CFLAGS}")
53 set(_libssh_INCLUDE_DIRS "${_libssh_STATIC_INCLUDE_DIRS}")
54 set(_libssh_LIBRARY_DIRS "${_libssh_STATIC_LIBRARY_DIRS}")
55 set(_libssh_LIBRARIES "${_libssh_STATIC_LIBRARIES}")
56 endif()
57 message(STATUS "Found Libssh (via pkg-config): ${_libssh_INCLUDE_DIRS} (found version \"${LIBSSH_VERSION}\")")
58else()
59 find_path(LIBSSH_INCLUDE_DIR NAMES "libssh/libssh.h")
60 if(LIBSSH_USE_STATIC_LIBS)
61 set(_libssh_CFLAGS "-DLIBSSH_STATIC")
62 find_library(LIBSSH_LIBRARY NAMES "ssh_static" "libssh_static" "ssh" "libssh")
63 else()
64 find_library(LIBSSH_LIBRARY NAMES "ssh" "libssh")
65 endif()
67 unset(LIBSSH_VERSION CACHE)
68 if(LIBSSH_INCLUDE_DIR AND EXISTS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h")
69 set(_version_regex1 "#[\t ]*define[\t ]+LIBSSH_VERSION_MAJOR[\t ]+([0-9]+).*")
70 set(_version_regex2 "#[\t ]*define[\t ]+LIBSSH_VERSION_MINOR[\t ]+([0-9]+).*")
71 set(_version_regex3 "#[\t ]*define[\t ]+LIBSSH_VERSION_MICRO[\t ]+([0-9]+).*")
72 file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str1 REGEX "${_version_regex1}")
73 file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str2 REGEX "${_version_regex2}")
74 file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str3 REGEX "${_version_regex3}")
75 string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
76 string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
77 string(REGEX REPLACE "${_version_regex3}" "\\1" _version_str3 "${_version_str3}")
78 set(LIBSSH_VERSION "${_version_str1}.${_version_str2}.${_version_str3}")
79 unset(_version_regex1)
80 unset(_version_regex2)
81 unset(_version_regex3)
82 unset(_version_str1)
83 unset(_version_str2)
84 unset(_version_str3)
85 endif()
87 include(FindPackageHandleStandardArgs)
88 find_package_handle_standard_args(Libssh
89 REQUIRED_VARS
90 LIBSSH_INCLUDE_DIR
91 LIBSSH_LIBRARY
92 VERSION_VAR
93 LIBSSH_VERSION
94 )
96 if(LIBSSH_FOUND)
97 set(_libssh_INCLUDE_DIRS ${LIBSSH_INCLUDE_DIR})
98 set(_libssh_LIBRARIES ${LIBSSH_LIBRARY})
99 endif()
101 mark_as_advanced(LIBSSH_INCLUDE_DIR LIBSSH_LIBRARY)
102endif()
104if(LIBSSH_FOUND)
105 if(WIN32)
106 list(APPEND _libssh_LIBRARIES "iphlpapi") # for if_nametoindex
107 endif()
109 if(NOT TARGET CURL::libssh)
110 add_library(CURL::libssh INTERFACE IMPORTED)
111 set_target_properties(CURL::libssh PROPERTIES
112 INTERFACE_LIBCURL_PC_MODULES "${_libssh_pc_requires}"
113 INTERFACE_COMPILE_OPTIONS "${_libssh_CFLAGS}"
114 INTERFACE_INCLUDE_DIRECTORIES "${_libssh_INCLUDE_DIRS}"
115 INTERFACE_LINK_DIRECTORIES "${_libssh_LIBRARY_DIRS}"
116 INTERFACE_LINK_LIBRARIES "${_libssh_LIBRARIES}")
117 endif()
118endif()
Diagnostics4 git calls · 26 ms
CallStatusSizeTime026 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=2
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.6 KiB · hit21 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=21
git.response.bytes=1643
git.response.cache=HIT
git.response.duration_ms=21
git.fetch.wants=3837d4de624f5f0d5faafbc0c56ce2c93f3a8798
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=1643
git.pkt.payload.max=1622
git.sideband.band1.bytes=1621
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
a5e28dd90b9724d3
Request
363e36cc…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format