I have no performance issues, however I would like to take a look at how long and how much memory it uses, etc.
I would like to understand firsthand what things can be the neck of bottles, etc., and improve any code that I could use or use ... (perfectionist)
I am looking to create a small function that I can call at the beginning and at the end of each function that writes:
- lead time
- memory used
- cpu require
any ideas?
I did not use such things as memory_get_usage () or time recording methods (), so I would like to get some tips on how to implement them together.
source
share