About MT5 code profiler - page 2

 

I'm studying code profiling in MT5 and find it very useful in locating the bottleneck of EA.

Code profiling is a general technique for code optimization. MT4 or MT5 IDE generates highly frequent pauses (or interrupts) once per millisecond. Code profiling looks into the call stack of the pause and makes statistics for the functions and code lines in the call stack. 

The more the functions and lines appear in the call stack, the more time they use. Therefore, the top functions and lines are the bottlenecks.

I understand most content of the code profiling, but CPU % In MT5. 

 
Yes true! % cpu is not linked with ticks but based on sampling rates (approx 1000/sec).
Reason: