[Perf] Adding timeout option

From: abhishek agarwal
Date: Sat Oct 13 2012 - 11:54:14 EST


Hi folks..

I was thinking that why cant we have a timeout option in perf stat
command. The timeout feature will help us to profile a process for a
stipulated time (preferably in millisecs) and make perf stat return
after that time.

Eg:

perf stat --timeout=10 sleep 100

This will make perf return and report stats after 10 ms...

Hope anyone can shed some more light on the idea

Thanks & Regards,
Abhishek Agarwal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/