Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

命令 profile程序(-t则将把每个线程分开统计并分别输出,-k指定内核调试文件,这样会得到内核的调用信息) sudo operf -t -k /usr/lib/debug/lib/modules/$(uname -r)/vmlinux ./main 根据得到的采集数据输出结果 opreport -o symbols.txt -l callgraph若要输出函数callgra...

https://ryanstutorials.net/bash-scripting-tutorial/bash-if-statements.php 1.整数比较 -eq 等于,如:if [ “$a” -eq “$b” ]-ne 不等于,如:if [ “$a” -ne “$b” ]-gt 大于,如:if [ “$a” -gt “$b” ]-ge 大于等于,如:if [ “$a” -ge “$...

valgrind 这个厉害!比如其中的memcheck工具,跑一遍告诉你哪里越界访问了!yyds! gdb细粒度跟踪(这个超级牛啊) 可以不断确定要在哪里打断点,然后r,带着已经打的断点重新观察 经验malloc abort 或者 delete报错(说二次释放可是其实没有)heap is corrupt:被程序写了不该写的地方,比如在数组/vector长度后面写东西 std:...

https://www.cnblogs.com/sjli-blog/p/15076966.html vmstat的常规用法:vmstat interval times即每隔interval秒采样一次,共采样times次,如果省略times,则一直采集数据,直到用户手动停止为止。 [yuanzhiqiu@graph vertex_disjoint_path]$ vmstat 1 2 pro...

原理和简介Valgrind follows each allocation in your program and tracks it to see if it is returned properly, continue to be referenced or is lost in space, which is a ‘memory leak’. And as any leak, give...

oprofile的Q&A:https://oprofile.sourceforge.io/faq/ 先operfSYNOPSIS operf [ options ] [ --system-wide | --pid <pid> | [ command [ args ] ] ] One (and only one) of either command , --pid ...

https://blog.csdn.net/yuyin86/article/details/6671472 gprof[每个函数的调用时间] 仅单线程、用户态gprof的基本用法:1. 使用 -pg 选项编译和链接你的应用程序 ,在gcc编译程序的时候,加上-pg选项,如果是大项目,就在makefile里面修改编译选项,-pg放在那里都行。例如: gcc -pg -o test tes...

getconf显示的大小数据单位为byte所有CACHE相关的参数 getconf -a | grep CACHE cache line大小 getconf -a | grep CACHE_LINESIZE Intel的一般是64字节: LEVEL1_ICACHE_LINESIZE 64 LEVEL1_DCACHE_LINESIZE 64 ...

安装和启动这个写很好:Install Docker Engine on Ubuntu 在上述教程install之后docker run hello-word之前可能需要启动docker后台服务:sudo service docker starthow would you know that the service name was docker: You can see them using...

echo $?即输出上一条执行命令的退出码另外if command; then fi也是对command的退出码进行判断,如果为0则条件成立