profiler
A profiler is a performance analysis tool that measures how much time, memory or other resources each part of a running program uses.
A profiler runs alongside a program and collects data such as how often functions are called, how long each section takes and how much memory is used, revealing which parts are slow or resource-hungry. Measuring and analyzing performance this way is called profiling.
Profilers generally work either by sampling, which records the program's state at regular intervals, or by instrumentation, which inserts measurement points into the code. Results are often presented as call graphs or flame graphs, and profilers are built into web browser developer tools and the development tools of many programming languages.
This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.