For Linux, try oprofile (a command line tool), or sysprof (GUI based)

My favorite for Windows is still AQTime