2019独角兽企业重金招聘Python工程师标准>>>

以下是摘自google-code的介绍

Google Performance Tools

The fastest malloc we've seen; works particularly well with threads and STL. Also: thread-friendly heap-checker, heap-profiler, and cpu-profiler.

Overview

Perftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.

Perftools is distributed under the terms of the BSD License.

For downloads, news, and other information, visit our Project Page.

Example

Note: this is by no means complete documentation, but simply gives you an idea of what the API is like.

No recompilation is necessary to use these tools.

TC Malloc:

gcc [...] -ltcmalloc

Heap Checker:

gcc [...] -o myprogram -ltcmalloc
HEAPCHECK=normal ./myprogram

Heap Profiler:

gcc [...] -o myprogram -ltcmalloc
HEAPPROFILE=/tmp/netheap ./myprogram

Cpu Profiler:

gcc [...] -o myprogram -lprofiler
CPUPROFILE=/tmp/profile ./myprogram

Sample Output

The heap profiler can pop up a window that displays information as a directed graph:

The cpu profiler can produce a weighted call graph:

Documentation

  • thread-caching malloc
  • heap-checking using tcmalloc
  • heap-profiling using tcmalloc
  • CPU profiler

Downloads

For downloads, please visit our Downloads Page.

Links to Other Sites

Russ Cox's gperftools-httpd, a simple http server based on thttpd that enables remote profiling via google-perftool's pprof.

Brett Viren's Perftools project at the Brookhaven National Laboratory -- a similar project with the same name as Google's. [docs], [download]

Questions and Feedback

While this wiki page allows comments, I don't check it very often. If you have questions, comments, or feedback, please direct them to google-perftools@googlegroups.com.

转载于:https://my.oschina.net/liangzi1210/blog/113288

gperftools相关推荐

  1. 动态执行流程分析和性能瓶颈分析的利器——gperftools的Cpu Profiler

    在<动态执行流程分析和性能瓶颈分析的利器--valgrind的callgrind>中,我们领略了valgrind对流程和性能瓶颈分析的强大能力.本文将介绍拥有相似能力的gperftools ...

  2. 堆状态分析的利器——gperftools的Heap Profiler

    在<内存泄漏分析的利器--gperftools的Heap Checker>一文中,我们介绍了如何使用gperftools分析内存泄漏.本文将介绍其另一个强大的工具--Heap Profil ...

  3. gprof, Valgrind and gperftools - an evaluation of some tools for application level CPU profiling on

    2019独角兽企业重金招聘Python工程师标准>>> In this post I give an overview of my evaluation of three diffe ...

  4. gperftools mysql_利用 gperftools 对nginx mysql 内存管理 性能优化

    利用 gperftools 对nginx 与 mysql  进行 内存管理  性能优化 降低负载. Gperftools 是由谷歌开发.官方对gperftools 的介绍为: These tools ...

  5. 使用valgrind对gperftools(tcmalloc)进行内存泄漏和越界检测

    使用valgrind对gperftools(tcmalloc)进行内存泄漏和越界检测 RToax 2021年3月 1. 问题引入 在<内存分配器ptmalloc,jemalloc,tcmallo ...

  6. gperftools安装使用_记一次使用gperftools优化线上程序

    gperftools的实战使用经验 项目自上线之后一直有玩家反应战斗的时候会有不太流畅的情况出现,尤其是人数多,生成战斗对象多的情况下,经过对程序的监控并没有发现什么异常,主机资源的使用上也没发现什么 ...

  7. valgrind检测内存泄漏,gperftools,memwatch和性能优化Messy_Test

    yum -y install  valgrind 如何在windows使用valgrind_如何在windows下使用f2py_weixin_39621870的博客-CSDN博客 QNX下Valgri ...

  8. gperftools安装与使用

    下载地址: https://github.com/gperftools/gperftools 使用说明: 性能测试工具CPU profiler(gperftools)的使用心得 libunwind下载 ...

  9. gperftools安装和使用

    gperftools 下载和安装 github 上找到源码,下载并解压 64位机器需要先安装 apt-get install libunwind8-dev ./autogen.sh ./configu ...

  10. gperftools的安装与使用

    centos 7 x86-64 安装环境: yum install gperftools yum install gperftools-devel test.cc #include <iostr ...

最新文章

  1. linux 文件缓冲区,如何查看 Linux 当前缓存了哪些大文件?
  2. html5模拟keyup事件
  3. 9550电机_电机转矩与性能的关系
  4. Turn over a new leaf
  5. 座谈会:Apache基金会那些事儿
  6. 联想手机android系统耗电,联想 K900 Android 4.2 手机续航能力实测
  7. 第18章 类加载机制与反射
  8. GIS地图界面和计算机图形学填充算法
  9. java 解析 jar_解析java中对jar包进行再次修改
  10. Curl操作es实践
  11. mysql中的blob和text区别
  12. 无盘服务器磁盘缓存,云更新无盘服务器磁盘缓存器
  13. 平滑滤波器模板尺寸与平滑效果的关系_Python Opencv 图像平滑处理
  14. php 修改cache数据,修改ThinkPHP缓存为Memcache的方法
  15. 阿里分布式数据库服务实践
  16. zepto tap “点透”研究
  17. Python科学计算系列2—不等式和不等式组
  18. JQuery----倒计时插件downCount
  19. instagram授权流程(第二篇)
  20. Matlab利用函数句柄实现函数嵌套

热门文章

  1. windows下springboot项目部署elk日志系统教程elasticsearch与logstash与kibana
  2. Spring MVC的表单标签库详解
  3. 索引 | ggplot2基础语法系列推文汇总
  4. linux 程序调试日志,Linux程序调试
  5. 2021年最想学习的五大编程语言
  6. 二维数组初始化为0的方式
  7. php 数组重新打乱_PHP 将数组打乱 shuffle 函数
  8. ftp ssl java_FTP(四)实现FTP,SSL加密
  9. android文件搜索广播,Android 实现无网络传输文件
  10. gis 大屏_数据可视化大屏的前景如何