Forum > Discussion Forum

ExtractTimes Perl script for easy performance info collection

(1/5) > >>

Raistmer:
I wrote some Perl script that will parse client_info.xml file and extract valuable performance info from it.
Currently supported apps are:
1 - AKv8 MB
2- ATI MB
3- ATI AP
4 -CPU AP
5 - x32f CUDA MB

For AP it will extract blanking % along with elapsed and CPU times, for MB - AR of task.
Script and example of its result in attached file.

Urs Echternacht:
Debug session of your perl script running on linux. Looks like it hangs somewhen :
main::(ExtractTimes.pl:1):      $path="client_state.xml";
  DB<0> n
main::(ExtractTimes.pl:2):      $results="Times.txt";
  DB<0> n
main::(ExtractTimes.pl:5):      open (IN, $path); 
  DB<0> n
main::(ExtractTimes.pl:6):      open (RES, ">".$results);
  DB<0> n
main::(ExtractTimes.pl:7):      print RES "Task name"."\t"."Parameter"."\t"."Result Type"."\t"."Revision"."\t"."ElapsedTime"."\t"."CPUTime"."\n";
  DB<0> n
main::(ExtractTimes.pl:9):      while (<IN>) {   
  DB<0> n
main::(ExtractTimes.pl:10):                     if( /<result>/ ){
  DB<0> n
main::(ExtractTimes.pl:10):                     if( /<result>/ ){
  DB<0> n
main::(ExtractTimes.pl:10):                     if( /<result>/ ){
  DB<0> n
main::(ExtractTimes.pl:10):                     if( /<result>/ ){
  DB<0> n
main::(ExtractTimes.pl:10):                     if( /<result>/ ){
...

Raistmer:
hangs ? :)
Well, try to copy client_state.xml in different locaation before running script. If script re-created while it accessed by script some undefined behavior possible.

Urs Echternacht:

--- Quote from: Raistmer on 09 Oct 2010, 06:15:52 pm ---hangs ? :)
Well, try to copy client_state.xml in different locaation before running script. If script re-created while it accessed by script some undefined behavior possible.

--- End quote ---
Ok, done like you suggested, but still same outcome its not getting beyond line 10.

Raistmer:
And it should? ;)
There are many other lines in client_state.xml before first <result> tag approaches...

Navigation

[0] Message Index

[#] Next page

Go to full version