Find the answer to your Linux question:
Results 1 to 4 of 4
I am recording a performance counters frm linux using the command perf record. I want to use the result perf.data as an input to other programming apps. Do you know ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    2

    Read and parse perf.data


    I am recording a performance counters frm linux using the command perf record.

    I want to use the result perf.data as an input to other programming apps. Do you know how shall I read and parse the data in perf.data? Is there a way to transform it to .text file or .csv?

  2. #2
    Just Joined!
    Join Date
    Feb 2010
    Posts
    26
    Quote Originally Posted by shaklasah View Post
    I am recording a performance counters frm linux using the command perf record.

    I want to use the result perf.data as an input to other programming apps. Do you know how shall I read and parse the data in perf.data? Is there a way to transform it to .text file or .csv?
    Don't go over the .data extension of this file. YOu can simply use the file as a txt file. You can pass the file as simply an argument to your program.

  3. #3
    Just Joined!
    Join Date
    Aug 2012
    Posts
    2
    Quote Originally Posted by junmuz View Post
    Don't go over the .data extension of this file. YOu can simply use the file as a txt file. You can pass the file as simply an argument to your program.
    You think its that simple? I tried reading the file with "gedit" command but it did not work..

  4. #4
    Just Joined!
    Join Date
    Feb 2010
    Posts
    26
    Quote Originally Posted by shaklasah View Post
    You think its that simple? I tried reading the file with "gedit" command but it did not work..
    What do you mean by the term it didn't work?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •