I'd like to use perf to profile the monkey command on Android, but I got stuck with this.
Normally, when I run following:
monkey -v -p com.google.android.youtube 500
-it works (it generates 500 user events for youtube)
BUT, when I want to get the perf stat of it as follows:
perf stat monkey -v -p com.google.android.youtube 500
I get:
monkey: No such file or directory
Terminated
monkey is a command, not a file nor a directory. Why am I getting this? Any help will be greatly appreciated!
Thank you. David