cli: add stat command

Operating Systems / OSv - Avi Kivity [cloudius-systems.com] - 18 June 2013 03:14 UTC

Usage:

perf list (lists all tracepoints) perf stat tp... (counts tracepoints)

Example:

[/]$ perf stat mutex_lock ctxsw=sched_switch mutex_unlock wake=sched_wake mutex_lock ctxsw mutex_unlock wake 40 3 1909 2 2075 147 190 82 193 138 193 78 146 139 146 92 317 179 317 78 146 139 146 78 146 139 186 78 205 139 165 78 146 139 146 78 146 139 146 78 146 139 146 80 193 143 193 81 151 147 151 78 146 139 146 78 146 139 146 78 146 139 146 78 159 139 159 78 149 139 149 78 146 139 146 78 164 139 164 78 146 139 176 78 176 139 146 78 149 139 149 78 146 139 146 78 146 139 146 78 mutex_lock ctxsw mutex_unlock wake 146 139 146 79 715 147 715 80 188 139 204 78

092f28c cli: add stat command
bootfs.manifest | 1 +
console/cli.js | 2 ++
console/perf.js | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 107 insertions(+)

Upstream: github.com


  • Share