Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Programming IT Technology

VTUNE-like Profiling Tools for Unix? 7

Milo_Mindbender asks: "I'm working on a rather large scale C++ graphics/networking project under Linux and am really missing having a low level code profiler like Intel's VTUNE available. In particular, I am looking for the ability to profile not just CPU use, but using the CPU performance counters to profile stuff like L1/L2 cache misses, pipeline stalls...etc. The other VTUNE capability I'm missing is the way it profiles the whole system, so the profile includes time spent in drivers, OS and everything else along with your program's profile. Has anyone seen anything like this for Linux? I hear Intel is working on VTUNE for Linux but they don't seem to have released anything yet."
This discussion has been archived. No new comments can be posted.

VTUNE-like Profiling Tools for Unix?

Comments Filter:
  • by Anonymous Coward
    but that's the price you pay for using C++. C is going to be a lot better choice for low-level programming and profiling.
  • by Snowfox ( 34467 ) <snowfox.snowfox@net> on Friday October 05, 2001 @06:57PM (#2394297) Homepage
    I haven't seen anything like this for Linux. Plenty of simple profiling tools, but nothing like VTune.

    I would strongly suggest that you port the performance-critical portion of your app to Windows. You can give it a null display interface, fake input, etc, just enough to keep the inner loop(s) running while you run VTune over it.

    Despite the previous poster's comment about C++ being bad for performance, a well-designed C++ app also makes it easy to set up portable test code as described above. This is one of the many reasons for which C++ is more and more often used for performance-critical work such as video game authoring.

  • OProfile (Score:3, Funny)

    by JohnZed ( 20191 ) on Sunday October 07, 2001 @06:49PM (#2399989)
    The closest thing to vtune for Linux is probably OProfile: oprofile.sourceforge.net [sourceforge.net]. It uses the same performance-counter-based method as vtune, but it doesn't have a flashy GUI. It can, however, give an annotated dump of source code with performance numbers for each line.

    You might also want to check out KProf at http://kprof.sourceforge.net/ [sourceforge.net]. It's a nice GUI for gprof and functioncheck. FunctionCheck is much more detailed than gprof, but it requires re-linking the app. See http://www710.univ-lyon1.fr/~yperret/fnccheck/prof iler.html [univ-lyon1.fr] for more details.


  • What is Cacheprof? [cacheprof.org]

    Cacheprof is a tool designed to help programmers quantify and understand the cache behaviour of programs and algorithms. With this knowledge, you might be able to modify your code to be more cache-friendly and thereby faster. Cacheprof will run your program, simulating a cache of your choice, and will annotate each line of source code with the number of memory references and the number of cache misses caused by that line. It will also print summaries per-procedure, and for the program as a whole. Finally, it will count the number of instructions executed, which can be very useful.

It isn't easy being the parent of a six-year-old. However, it's a pretty small price to pay for having somebody around the house who understands computers.

Working...