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
Post a Comment