Profiling for cells instead of functions

조회 수: 2 (최근 30일)
John Doe
John Doe 2013년 5월 12일
I have a function that in turn calls many more functions. I want to use the profiler to identify what parts of the code is most time demanding.
Is it possible to get the profile summary sorted by cells, instead of function calls?
For instance, is it possible to get the profiler to output this:
Cells Calls Total time ...
Part 1 1 .... ...
Part 2 1 .... ...
instead of:
Function name Calls Total time ...
func1 1 .... ...
func2 1 .... ...
For the following code:
%%Part 1:
a = 1;
b = 2;
X = func1(a,b);
%%Part 2:
c = a+b;
Y = func2(c,b);
Thanks!

답변 (1개)

the cyclist
the cyclist 2013년 5월 12일
편집: the cyclist 2013년 5월 12일
I looked through
>> doc profile
and also some articles here:
and did not see any mention of that ability.
  댓글 수: 2
John Doe
John Doe 2013년 5월 12일
Thanks for checking it out! I'll manage it some other way then =)
the cyclist
the cyclist 2013년 5월 12일
I guess you could artificially put your cells into functions for profiling, but that just seems silly. :-)

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by