MySQL, for instance, has The Slow Query Log and the EXPLAIN command.
In reply to Re: Profiling and Performance by andreas1234567 in thread Profiling and Performance by Herkum