早晨在linuxer看到文章,感觉挺有意思,最早研究perf的时候接触过这些概念,乍一看倍感亲切。

sudo perf record -F  99 -a -g --sleep 20

perf record中这么几个参数还蛮有意思:

    -F, --freq <n>        profile at this frequency
-g enables call-graph recording
-G, --cgroup <name> monitor event in cgroup name only

-g可以设置Cgroup,竟然用cgroup的名字做索引

-F 是采样的频率?

-F 99: sample at 99 Herz (samples per second), I'll sometimes sample faster than this (up to 999 Herz), but that also costs overhead. 99 Hert should be negligible. Also, the value '99' and not '100' is to avoid lockstep sampleing, which can produce skewed results.

lockstep 采样!

lockstep sampleing is when the profiling samples occur at the same frequency as a loop in the application. The result of this would be that the sample often occurs at the same place in the loop, so it will think that opration is the most common operation, and a likely bottleneck. An analogy would be if you were

最新文章

  1. Web Performance Test : 为Request的Post参数名添加XPath支持
  2. UML 行为图之用例图 总结
  3. CSS样式学习笔记『W3School』
  4. Object对象
  5. Spring第二篇和第三篇的补充【JavaConfig配置、c名称空间、装载集合、JavaConfig与XML组合】
  6. ANDROID基础ACTIVITY篇之Activity的生命周期(一)
  7. 炫酷:一句代码实现标题栏、导航栏滑动隐藏。ByeBurger库的使用和实现
  8. mongodb系列之--分片的原理与配置
  9. shim &amp; polyfill
  10. VMware与Centos系统安装
  11. HashTable原理与源码分析
  12. vertical-align和图片下方空白问题
  13. Hadoop记录-hadoop2.x常用端口及定义方法
  14. 与临时对象的斗争(上)ZZ
  15. 浅谈Java多线程中的join方法
  16. JPA之@GeneratedValue注解(转)
  17. Node.js最新Web技术栈(2016年4月)
  18. Python【time】模块
  19. 《Think Python》第16章学习笔记
  20. PHP笔试题及答案

热门文章

  1. React后台管理系统-品类选择器二级联动组件
  2. 【读书笔记】你不知道的JavaScript(上卷)--作用域是什么
  3. UVA_1434_YAPTCHA
  4. MySQL超大表如何提高count速度
  5. expect配合shell 实现自动分发秘钥文件
  6. JavaScript---ECMA对象
  7. ethereum(以太坊)(十一)--字节数组(二)
  8. 为什么 redis 单线程却能支撑高并发
  9. python如果想输出原格式的内容,可以加&#39;&#39;&#39; &#39;&#39;&#39;,占位符使用方式
  10. Wannafly挑战赛4. B