perf 工具介绍3
2015-11-06 22:06
274 查看
http://blog.chinaunix.net/uid-10540984-id-3854969.html
http://blog.csdn.net/zhangskd/article/details/37902159
[root@localhost ~]# perf record -e cpu-clock ./t1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.003 MB perf.data (~137 samples) ]
[root@localhost ~]# perf report
# Samples: 102
#
# Overhead Command Shared Object Symbol
# ........ ....... ............. ......
#
99.02% t1 ./t1 [.] longa
0.98% t1 [kernel] [k] do_page_fault
-----------------------------------------------------------------------------
http://blog.csdn.net/zhangskd/article/details/37902159
[root@localhost ~]# perf record -e cpu-clock ./t1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.003 MB perf.data (~137 samples) ]
[root@localhost ~]# perf report
# Samples: 102
#
# Overhead Command Shared Object Symbol
# ........ ....... ............. ......
#
99.02% t1 ./t1 [.] longa
0.98% t1 [kernel] [k] do_page_fault
-----------------------------------------------------------------------------
usage: perf top [<options>] -e, --event <event> event selector. use 'perf list' to list available events -c, --count <n> event period to sample -p, --pid <n> profile events on existing pid -a, --all-cpus system-wide collection from all CPUs -C, --CPU <n> CPU to profile on -k, --vmlinux <file> vmlinux pathname -m, --mmap-pages <n> number of mmap data pages -r, --realtime <n> collect data with this RT SCHED_FIFO priority -d, --delay <n> number of seconds to delay between refreshes -D, --dump-symtab dump the symbol table used for profiling -f, --count-filter <n> only display functions with more events than this -g, --group put the counters into a counter group -i, --inherit child tasks inherit counters -s, --sym-annotate <symbol name> symbol to annotate - requires -k option -z, --zero zero history across updates -F, --freq <n> profile at this frequency -E, --entries <n> display this many functions -v, --verbose be more verbose (show counter open errors, etc)
相关文章推荐
- This Android SDK requires Android Developer Toolkit version 23.0.0 or above
- 微软C# Process类的两个静态方法 存在内存泄露
- 代理和协议
- Android 快捷键
- 最长递增子序列详解(longest increasing subsequence)
- C中堆和栈的区别
- BLOck基本理解
- Daily Scrumming* 2015.11.6(Day 18)
- 配置ADT
- Daily Scrumming* 2015.11.5(Day 17)
- Address already in use: JVM_Bind<null>:8080错误的解决办法
- READING NOTE: Two-Stream Convolutional Networks for Action Recognition in Videos
- 【编程开发】opencv实现对Mat中某一列或某一行的元素进行normalization
- sift论文看后理解
- Java学习笔记(1):重载方法
- 外键约束和级联操作
- Intent 传数据
- POJ 3009 dfs暴搜
- hdoj2053(switch game
- zoj 3891 K-hash(后缀自动机)