linux - Capture turbospeed while running a program -


i wanted create automation program capture turbospeed of cpu while program running.

my automation script should using perl language.

i did try use:

system("script mytest.txt"); system("./turbostat"); 

when execute program, script line works not turbostat.

can suggest me ways through can capture turbospeed?

have @ sys::info::device::cpu module.

synopsis

   use sys::info;    use sys::info::constants qw( :device_cpu );    $info = sys::info->new;    $cpu  = $info->device( cpu => %options );     printf "cpu: %s\n", scalar($cpu->identify)  || 'n/a';    printf "cpu speed %s mhz\n", $cpu->speed || 'n/a';    printf "there %d cpus\n"  , $cpu->count || 1;    printf "cpu load: %s\n"       , $cpu->load  || 0; 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -