profiler causing severe slowdown
Mostrar comentarios más antiguos
Hey all! I've encounter a very odd problem: Suddenly, turning on the profiler causes an unbearable slowdown - even the most simple function hardly returns. * Turning the profiler off returns matlab back to life. * killing matlab and loading it again didn't solve the problem.
Any idea what to do or where to look at??
thanx in advance..
2 comentarios
Robert Cumming
el 5 de Jul. de 2011
show your example function you mention below
and which version/platform of matlab your using
alon
el 7 de Jul. de 2011
Respuestas (2)
C.J. Harris
el 5 de Jul. de 2011
2 votos
The Profiler will slow your system down. Only turn it on when you really need it. There is no way to avoid this slow-down.
1 comentario
alon
el 5 de Jul. de 2011
Jan
el 6 de Jul. de 2011
2 votos
This is not a bug. Matlab's JIT can accelerate e.g. FOR loops substantially, but it reorders the calculations. This conclicts with the profiling and in consequence the JIT is disabled, if the profiler runs.
The same happens, if the debugger is enabled , e.g. by setting some breaks points. Example code: http://www.mathworks.com/matlabcentral/answers/8461-double-summation-with-vectorized-loops. This is 100 times faster without break points under Matlab 2009a.
Of course this can reduce the meaning of the profiling results. Therefore some TIC TOCs are often more useful.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!