{"id":13611957,"url":"https://github.com/y123456yz/tcprstat","last_synced_at":"2025-08-20T15:42:05.237Z","repository":{"id":119317303,"uuid":"69236080","full_name":"y123456yz/tcprstat","owner":"y123456yz","description":"服务器时延统计工具，在原有功能基础上，增加时延阈值统计，记录超过阈值的包个数，并把数据包时间戳记录到日志文件，这样可以根据时间戳快速定位到抓包文件中对应的包，从而可以快速定位到大时延包，避免了人肉搜索抓包文件，提高问题排查效率，所有参数可配置。可以以在线方式和离线方式分析redis、memcached、mysql、nginx等请求应答系统的时延，并定位慢响应数据报文。(源码学习交流QQ群：568892619)","archived":false,"fork":false,"pushed_at":"2021-02-05T07:31:32.000Z","size":960,"stargazers_count":164,"open_issues_count":1,"forks_count":74,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-25T18:04:59.487Z","etag":null,"topics":["server","time-delay-statistics"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y123456yz.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2016-09-26T09:47:15.000Z","updated_at":"2025-05-16T03:31:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0636353-6be7-43ca-9ed7-52c0ab929ed3","html_url":"https://github.com/y123456yz/tcprstat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/y123456yz/tcprstat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y123456yz%2Ftcprstat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y123456yz%2Ftcprstat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y123456yz%2Ftcprstat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y123456yz%2Ftcprstat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y123456yz","download_url":"https://codeload.github.com/y123456yz/tcprstat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y123456yz%2Ftcprstat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266646430,"owners_count":23961944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["server","time-delay-statistics"],"created_at":"2024-08-01T20:00:19.552Z","updated_at":"2025-07-23T08:37:53.568Z","avatar_url":"https://github.com/y123456yz.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"                                 ~ tcprstat ~\n\ntcprstat is a pcap-based tool that  extracts information about TCP response\ntimes.\n\nIt works by sniffing for TCP \"requests\" (inbound packets) and measures the time\nthat it takes for sending a \"response\" (next outbound packet). While this\napproach might seem too simple, it works for simple protocols that are based in\nsuch request/response system, like HTTP and the MySQL protocol. In the future,\nwe may write more complex protocol decoding.\n\ntcprstat sniffs for a while, and then shows some stats about the sniffed\npackets, similar to the way top(1) works.\n\ntcprstat uses libpcap to capture TCP. Due to many distros not shipping\nlibpcap \u003e= 1.0.0, tcprstat ships libpcap 1.1.1 and uses it if it can't find a\nsuitable version\n\nThe build process delivers a static version, tcprstat-static, with no external\nlinking (some castration is needed at libpcap) so it can be copied directly to\na server with no need for compilation tools.\n\ntcprstat is released under the GPL, version 2 or 3.\n\n################################################################################\n#                                                                              #\n#   tcprstat -- Extract stats about TCP response times                         #\n#   Copyright (C) 2010  Ignacio Nin                                            #\n#                                                                              #\n#   This program is free software; you can redistribute it and/or modify       #\n#   it under the terms of the GNU General Public License as published by       #\n#   the Free Software Foundation; either version 2 of the License, or          #\n#   (at your option) any later version.                                        #\n#                                                                              #\n#   This program is distributed in the hope that it will be useful,            #\n#   but WITHOUT ANY WARRANTY; without even the implied warranty of             #\n#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #\n#   GNU General Public License for more details.                               #\n#                                                                              #\n#   You should have received a copy of the GNU General Public License          #\n#   along with this program; if not, write to the Free Software                #\n#   Foundation, Inc.,                                                          #\n#   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA               #\n#                                                                              #\n################################################################################\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy123456yz%2Ftcprstat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy123456yz%2Ftcprstat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy123456yz%2Ftcprstat/lists"}