[LLVMdev] Measure execution time of each basic block

Vanderson Martins do Rosario vandersonmr2 at gmail.com
Wed Sep 17 12:53:27 PDT 2014


Guys,

Someone have any idea how could I measure the execution time of each LLVM
basic block of a program?

I tried to use some profiling tools like gcov and perf, but as far as I
know they can only give me the frequency that each basic block is executed.

I was thinking about writing a pass to add PAPI instructions in each LLVM
basic block. Do you think is a good idea?

Thanks
 Vanderson M. Rosario
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140917/b704227d/attachment.html>


More information about the llvm-dev mailing list