A profiler is a program that monitors your program to find out where it's spending the most time. It's what you need to run if you want to know where to start optimising your code. Profiling isn't specific to object oriented programming.