Skip to main content
GameDev.net gamedev.net
🔒 Locked

profiling c++ under linux

Started by yunnat Jan 14, 2007 at 6:48 PM 2 replies 650+ views
Original Post
yunnat
yunnat
Do you happen to know a good profiler for C++ under linux? Linux has gprof, but it only reports time per function (does not break time per line).
yunnat
yunnat
From http://valgrind.org/info/tools.html, here are a few valgrind tools that seemed interesting:

-- Cachegrind is a cache profiler
-- Massif is a heap profiler

What I am looking for, however, is a regular code profiler, i.e. something that will output where (on which source lines) my program spends most computation time.

Is there some other valgrind tool that I've missed?

Thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.