ProfC/C++ 分析工具库
Prof 是 Linux 的自容器 C/C++ 分析工具库。
Prof 提供一个快速的方法来度量 C/C++ 代码片段的性能事件 (CPU 时钟周期等等) 。
小示例:
#include "prof.h"int main()
{ PROF_START(); // slow code goes here...
PROF_STDOUT();
}
自定义选项
#include <stdio.h> #define PROF_USER_EVENTS_ONLY #define PROF_EVENT_LIST \ PROF_EVENT_CACHE(L1D, READ, MISS) \ PROF_EVENT_CACHE(L1D, WRITE, MISS) #include "prof.h" int main() { uint64_t faults[2] = { 0 }; PROF_START(); // slow code goes here... PROF_DO(faults[index] += counter); // fast or uninteresting code goes here... PROF_START(); // slow code goes here... PROF_DO(faults[index] += counter); printf("Total L1 faults: R = %lu; W = %lu\n", faults[0], faults[1]); }
安装
wget -q https://raw.githubusercontent.com/cyrus-and/prof/master/prof.h
评论
cppcheckC/C++ 代码分析工具
cppcheck是静态的C/C++代码分析工具,用以检查内存泄漏、错配的内存分配和释放、缓冲区溢出,以及更多问题。特性独特的代码分析,可检测代码中的各种错误命令行界面和图形用户界面均可用Cppchec
cppcheckC/C++ 代码分析工具
0
weggliC/C++ 代码库语义搜索工具
weggli是一个快速且强大的C和C++代码库语义搜索工具,旨在帮助安全研究人员识别大型代码库中的有趣功能。weggli根据用户提供的查询对抽象语法树执行模式匹配。它的查询语言类似于C和C++代码,可
weggliC/C++ 代码库语义搜索工具
0
uftraceC/C++ 程序的跟踪和分析工具
uftrace用于跟踪和分析C/C++编写的程序的执行情况,它受到Linux内核的 ftrace框架的启发(特别是functiongraphtracer),支持 userspace程序。uftrace
uftraceC/C++ 程序的跟踪和分析工具
0
C++ SocketsC++ Socket 库
C++Sockets是一个跨平台的Sockets库,实现包括TCP、UDP、ICMP、SCTP协议。已实现的应用协议包括有SMTP、HTTP(S)、Ajp(1.3)。具有SOCKS客户端实现以及匿名D
C++ SocketsC++ Socket 库
0