Lines Matching refs:stat

15 Simpleperf has three main commands: stat, record and report.
17 The stat command gives a summary of how many events have happened in the profiled processes in a
48 The stat command: profiles processes and prints counter summary.
62 Below describes the most frequently used commands, which are list, stat, record and report.
90 ## The stat command
92 The stat command is used to get event counter values of the profiled processes. By passing options,
98 $ simpleperf stat -p 7394 --duration 10
114 ### Select events to stat
120 $ simpleperf stat -e cpu-cycles -p 11904 --duration 10
123 $ simpleperf stat -e cache-references,cache-misses -p 11904 --duration 10
126 When running the stat command, if the number of hardware events is larger than the number of
133 $ simpleperf stat -p 7394 -e cache-references,cache-references:u,cache-references:k \
160 To avoid hardware counter multiplexing, we can use `simpleperf stat --print-hw-counter` to show
164 $ simpleperf stat --print-hw-counter
181 $ simpleperf stat -p 7964 --group cache-references,cache-misses \
199 ### Select target to stat
207 $ simpleperf stat -p 11904,11905 --duration 10
210 $ simpleperf stat -p chrome --duration 10
212 $ simpleperf stat -p "chrome:(privileged|sandboxed)" --duration 10
215 $ simpleperf stat -t 11904,11905 --duration 10
217 # Start a child process running `ls`, and stat it.
218 $ simpleperf stat ls
222 $ simpleperf stat --app simpleperf.example.cpp --duration 10
225 $ simpleperf stat --app simpleperf.example.cpp -t 11904 --duration 10
228 $ simpleperf stat -a --duration 10
231 ### Decide how long to stat
239 $ simpleperf stat -p 11904 --duration 10
242 $ simpleperf stat ls
245 $ simpleperf stat -p 11904 --duration 10
257 # Print stat for process 11904 every 300ms.
258 $ simpleperf stat -p 11904 --duration 10 --interval 300
260 # Print system wide stat at interval of 300ms for 10 seconds. Note that system wide profiling needs
262 $ su 0 simpleperf stat -a --duration 10 --interval 300
268 to do a system wide stat.
273 $ su 0 simpleperf stat -e instructions:k,cache-misses -a --interval 300 --duration 15
281 By default, stat cmd outputs an event count sum for all monitored targets. But when `--per-thread`
282 option is used, stat cmd outputs an event count for each thread in monitored targets. It can be
283 used to find busy threads in a process or system wide. With `--per-thread` option, stat cmd opens
290 # stat cmd will be added to threads creating them.
291 $ simpleperf stat --per-thread -p 11904 --duration 1
295 $ su 0 simpleperf stat --per-thread -a --interval 1000 --interval-only-values
298 # created after stat cmd will be omitted.
299 $ su 0 simpleperf stat --per-thread -a --interval 1000 --interval-only-values --no-inherit
304 By default, stat cmd outputs an event count sum for all monitored cpu cores. But when `--per-core`
305 option is used, stat cmd outputs an event count for each core. It can be used to see how events
316 $ simpleperf stat -e cpu-cycles --per-core -p 1057 --duration 3
330 $ su 0 simpleperf stat --per-core -a --duration 1
333 $ su 0 simpleperf stat -e cpu-cycles -a --per-thread --per-core --duration 1
346 $ su 0 simpleperf stat -e cpu-cycles,instructions -a --duration 1 --per-core
349 $ su 0 simpleperf stat -e cpu-cycles --cpu 0-3,8 -e instructions -a --duration 1 --per-core
353 $ su 0 simpleperf stat --cpu 0-3 -e raw-l3d-cache-refill-rd --cpu 4-8 -e raw-l3d-cache-refill \
388 The way to select target in record command is similar to that in the stat command.
444 The way to decide how long to monitor in record command is similar to that in the stat command.