What is profiling?
Each script should care of resources (time, memory or CPU time) being used, but some don't. Profiling is a detailed analysis of your script's behavior while it's running.A profiler notices every processed line, it's callers and called functions and time required to process it.