profiler causing severe slowdown

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

Robert Cumming
Robert Cumming 2011년 7월 5일
show your example function you mention below
and which version/platform of matlab your using
alon
alon 2011년 7월 7일
The phenomena appeared regardless to the function..
somehow things got back to normal...

댓글을 달려면 로그인하십시오.

답변 (2개)

C.J. Harris
C.J. Harris 2011년 7월 5일

2 개 추천

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

alon
alon 2011년 7월 5일
First of all, thank u for responding.
I know the profiler should make the program run slower..yet I encounter an unusual slowdown.. for example: a function which runs without the profiler for 0.01 sec, would take minutes with the profiler..that's defintily a bug!

댓글을 달려면 로그인하십시오.

Jan
Jan 2011년 7월 6일

2 개 추천

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.

댓글 수: 2

alon
alon 2011년 7월 7일
That a good explenation but I think there was something beyond that... somehow things got back to normal state (I really don't know how?).
thank you for replying anyway!
Jan
Jan 2011년 7월 7일
"Things got back to normal state" is very vague. can you explain the problems with any details?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

2011년 7월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by