Skip to content

Instantly share code, notes, and snippets.

@pcn
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save pcn/6dc67334831c7a409350 to your computer and use it in GitHub Desktop.

Select an option

Save pcn/6dc67334831c7a409350 to your computer and use it in GitHub Desktop.
Not getting much in the way of linux perf data...
spacey@spacey-vm:~$ sudo perf record -F 99 -p 1531 -g -- sleep 5
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.156 MB perf.data (~6825 samples) ]
spacey@spacey-vm:~$ sudo perf report -n perf.data --stdio
Failed to open /tmp/perf-1531.map, continuing without symbols
# To display the perf.data header info, please use --header/--header-only option
#
# Samples: 58 of event 'cpu-clock'
# Event count (approx.): 585858580
#
# Children Self Samples Command Shared Object Symbol
# ........ ........ ............ ....... ............. ......
#
spacey@spacey-vm:~$ ls -1rt | tail -1
perf.data
spacey@spacey-vm:~$ ps -ef | grep 1531
spacey 1531 1304 14 09:21 ? 00:10:32 compiz
spacey 6232 1875 0 10:35 pts/1 00:00:00 grep --color=auto 1531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment