master
1#!/usr/bin/env perl
2#***************************************************************************
3# _ _ ____ _
4# Project ___| | | | _ \| |
5# / __| | | | |_) | |
6# | (__| |_| | _ <| |___
7# \___|\___/|_| \_\_____|
8#
9# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
10#
11# This software is licensed as described in the file COPYING, which
12# you should have received as part of this distribution. The terms
13# are also available at https://curl.se/docs/copyright.html.
14#
15# You may opt to use, copy, modify, merge, publish, distribute and/or sell
16# copies of the Software, and permit persons to whom the Software is
17# furnished to do so, under the terms of the COPYING file.
18#
19# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20# KIND, either express or implied.
21#
22# SPDX-License-Identifier: curl
23#
24###########################################################################
26use strict;
27use warnings;
29my $sort = 0;
31# we may get the directory root pointed out
32my $root = shift @ARGV;
33while(defined $root) {
35 if($root =~ /--heading=(.*)/) {
36 print "$1\n";
37 $root = shift @ARGV;
38 next;
39 }
40 elsif($root =~ /--sort/) {
41 $sort = 1;
42 $root = shift @ARGV;
43 next;
44 }
46 last;
47}
49if(!defined $root) {
50 $root = ".";
51}
53$root = "$root/include/curl";
54opendir(D, $root) or die "Cannot open directory $root: $!\n";
55my @dir = readdir(D);
56closedir(D);
58my @incs;
59foreach (sort(@dir)) {
60 if($_ =~ /\.h$/) {
61 push(@incs, "$root/$_");
62 }
63}
65my $verbose = 0;
66my $summary = 0;
67my $misses = 0;
69my @out;
70foreach my $f (@incs) {
71 open(H, "<", $f) or die;
72 my $first = "";
73 while(<H>) {
74 s/CURL_DEPRECATED\(.*"\)//;
75 s/ */ /g;
76 if(/^(^CURL_EXTERN .*?)\(/) {
77 my $decl = $1;
78 $decl =~ s/\r$//;
79 $decl =~ /([a-z_]+)$/;
80 push(@out, $1);
81 }
82 elsif(/^(^CURL_EXTERN .*)/) {
83 # handle two-line declarations
84 my $decl = $1;
85 $decl =~ s/\r$//;
86 $first = $decl;
87 }
88 elsif($first) {
89 if(/^ *(.*)\(/) {
90 my $decl = $1;
91 $decl =~ s/\r$//;
92 $first .= $decl;
93 $first =~ /([a-z_]+)$/;
94 push(@out, $1);
95 }
96 $first = "";
97 }
98 }
99 close H;
100}
102if($sort) {
103 @out = sort(@out);
104}
106foreach (@out) {
107 print("$_\n");
108}
Diagnostics4 git calls · 26 ms
CallStatusSizeTime026 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 · 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 · hit2 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=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.1 KiB · hit21 ms
git.upload-pack fetch http.response.status_code=200 git.response.bytes=1145 git.response.cache=HIT git.response.duration_ms=21 git.fetch.wants=ceb313cf8c2ed60a1e11dd0be70ec2c015b1cee9 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=1145 git.pkt.payload.max=1124 git.sideband.band1.bytes=1123 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
- a5e2db3e0bfec125
- Request
- 33ae4d15…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format