Code Optimizer

Please let me know which tool (GNU or 3rd party tool) is the best we can make use for profiling and optimizing our code. Is gprof an effective tool? Do we have dtrace tool ported in Linux? Our's is a web app developed on Red Hat Linux OS using C++

Thanks in advance.