- •This is a static copy of a profile report
- •This is a static copy of a profile report
- •Code Analyzer results
- •Function listing
- •This is a static copy of a profile report
- •Code Analyzer results
- •Function listing
- •This is a static copy of a profile report
- •Function listing
- •Ответы на контрольные вопросы:
- •Code Analyzer results
Code Analyzer results
Line number |
Message |
15 |
Input argument 'L1' might be unused, although a later one is used. Consider replacing it by ~. |
22 |
Use && instead of & as the AND operator in (scalar) conditional statements. |
Coverage results [ Show coverage for parent directory ]
Total lines in function |
16 |
Non-code lines (comments, blank lines) |
3 |
Code lines (lines that can run) |
13 |
Code lines that did run |
13 |
Code lines that did not run |
0 |
Coverage (did run/can run) |
100.00 % |
Function listing
time calls line 15 function [] = picture(x,y,L,L1,n) 16 %PICTURE рекурсивная функция 73 17 x_c = [x-L/2,x+L/2,x+L/2,x-L/2,x-L/2]; 73 18 y_c = [y-L/2,y-L/2,y+L/2,y+L/2,y-L/2]; 19 0.34 73 20 line(x_c,y_c); 0.34 73 21 global L_MIN 73 22 if (n-1>0) & ~(L<L_MIN) 9 23 L1 = 1.25 * L; L = L/3.1; 9 24 x1 = [x-L1, x, x+L1, x+L1, x+L1, x, x-L1, x-L1]; 9 25 y1 = [y+L1, y+L1, y+L1, y, y-L1, y-L1, y-L1, y]; 9 26 for i=1:8 72 27 picture(x1(i),y1(i),L,L1,n-1); 72 28 end 9 29 end 73 30 end
Геометрический фрактал четвертого порядка
Профиль функции.
This is a static copy of a profile report
Home
Profile Summary Generated 17-Mar-2012 23:15:28 using cpu time.
Function Name |
Calls |
Total Time |
Self Time* |
Total Time Plot (dark band = self time) |
rec_fractal |
1 |
5.392 s |
1.887 s |
|
rec_fractal>picture |
585 |
3.505 s |
3.505 s |
|
closereq |
1 |
1.078 s |
1.078 s |
|
workspacefunc |
8 |
0.539 s |
0.270 s |
|
workspacefunc>getShortValueObjectsJ |
2 |
0.270 s |
0.270 s |
|
initprintexporttemplate |
1 |
0 s |
0.000 s |
|
workspacefunc>getWhosInformation |
2 |
0 s |
0.000 s |
|
...s.mlwidgets.workspace.WhosInformation (Java method) |
2 |
0 s |
0.000 s |
|
workspacefunc>getAbstractValueSummaryJ |
6 |
0 s |
0.000 s |
|
workspacefunc>getclass |
6 |
0 s |
0.000 s |
|
workspacefunc>num2complex |
6 |
0 s |
0.000 s |
|
workspacefunc>getShortValueObjectJ |
2 |
0 s |
0.000 s |
|
workspacefunc>getStatObjectJ |
4 |
0 s |
0.000 s |
|
workspacefunc>getStatObjectM |
4 |
0 s |
0.000 s |
|
workspacefunc>getStatObjectsJ |
4 |
0 s |
0.000 s |
|
gcbf |
3 |
0 s |
0.000 s |
|
Self time is the time spent in a function excluding the time spent in its child functions. Self time also includes overhead resulting from the process of profiling.
This is a static copy of a profile report
Home
rec_fractal (1 call, 5.392 sec) Generated 17-Mar-2012 23:15:28 using cpu time. function in file /home/psdarko/matlab/Var 25/pw11/rec_fractal.m Copy to new window for comparing multiple runs
Parents (calling functions) No parent
Lines where the most time was spent
Line Number |
Code |
Calls |
Total Time |
% Time |
Time Plot |
10 |
picture(0,0,1,1.25,n) |
1 |
3.505 s |
65.0% |
|
6 |
figure('Color','w'); |
1 |
1.887 s |
35.0% |
|
13 |
end |
1 |
0 s |
0% |
|
11 |
clear('global','L_MIN') |
1 |
0 s |
0% |
|
9 |
L_MIN = 0.1; |
1 |
0 s |
0% |
|
All other lines |
|
|
0 s |
0% |
|
Totals |
|
|
5.392 s |
100% |
|
Children (called functions)
Function Name |
Function Type |
Calls |
Total Time |
% Time |
Time Plot |
rec_fractal>picture |
subfunction |
1 |
3.505 s |
65.0% |
|
initprintexporttemplate |
function |
1 |
0 s |
0% |
|
Self time (built-ins, overhead, etc.) |
|
|
1.887 s |
35.0% |
|
Totals |
|
|
5.392 s |
100% |
|
Code Analyzer results
Line number |
Message |
5 |
Use || instead of | as the OR operator in (scalar) conditional statements. |
Coverage results [ Show coverage for parent directory ]
Total lines in function |
13 |
Non-code lines (comments, blank lines) |
5 |
Code lines (lines that can run) |
8 |
Code lines that did run |
8 |
Code lines that did not run |
0 |
Coverage (did run/can run) |
100.00 % |
Function listing
time calls line 1 function [] = rec_fractal(n) 2 %REC_FRACTAL Построение фрактала по рекурсивной схеме 3 % n - глубина фрактального изображения или рекурсии. 4 1 5 if (nargin < 1) | (n < 1), n = 2; end 1.89 1 6 figure('Color','w'); 1 7 axes('Color','none','DataAspectRatio',[1 1 1],'NextPlot','add','XColor','w','YColor','w') 1 8 global L_MIN 1 9 L_MIN = 0.1; 3.50 1 10 picture(0,0,1,1.25,n) 1 11 clear('global','L_MIN') 12 1 13 end
Other subfunctions in this file are not included in this listing.
This is a static copy of a profile report
Home
rec_fractal>picture (585 calls, 3.505 sec) Generated 17-Mar-2012 23:15:29 using cpu time. subfunction in file /home/psdarko/matlab/Var 25/pw11/rec_fractal.m Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name |
Function Type |
Calls |
rec_fractal |
function |
1 |
rec_fractal>picture |
subfunction |
584 |
Lines where the most time was spent
Line Number |
Code |
Calls |
Total Time |
% Time |
Time Plot |
20 |
line(x_c,y_c); |
585 |
1.618 s |
46.2% |
|
21 |
global L_MIN |
585 |
0.539 s |
15.4% |
|
30 |
end |
585 |
0.270 s |
7.7% |
|
28 |
end |
584 |
0.270 s |
7.7% |
|
27 |
picture(x1(i),y1(i),L,L1,n-1); |
584 |
0.270 s |
7.7% |
|
All other lines |
|
|
0.539 s |
15.4% |
|
Totals |
|
|
3.505 s |
100% |
|
Children (called functions)
Function Name |
Function Type |
Calls |
Total Time |
% Time |
Time Plot |
rec_fractal>picture |
subfunction |
584 |
0 s |
0% |
|
Self time (built-ins, overhead, etc.) |
|
|
3.505 s |
100.0% |
|
Totals |
|
|
3.505 s |
100% |
|
