Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
11 практикум.docx
Скачиваний:
6
Добавлен:
14.09.2019
Размер:
209.94 Кб
Скачать

This is a static copy of a profile report

Home

Profile Summary Generated 17-Mar-2012 23:09:11 using cpu time.

Function Name

Calls

Total Time

Self Time*

Total Time Plot (dark band = self time)

rec_fractal

1

3.075 s

2.392 s

rec_fractal>picture

73

0.683 s

0.683 s

initprintexporttemplate

1

0 s

0.000 s

workspacefunc

1

0 s

0.000 s

workspacefunc>getWhosInformation

1

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, 3.075 sec) Generated 17-Mar-2012 23:09:11 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

6

figure('Color','w');

1

2.050 s

66.7%

10

picture(0,0,1,1.25,n)

1

0.683 s

22.2%

8

global L_MIN

1

0.342 s

11.1%

13

end

1

0 s

0%

11

clear('global','L_MIN')

1

0 s

0%

All other lines

 

 

0 s

0%

Totals

 

 

3.075 s

100%

 

Children (called functions)

Function Name

Function Type

Calls

Total Time

% Time

Time Plot

rec_fractal>picture

subfunction

1

0.683 s

22.2%

initprintexporttemplate

function

1

0 s

0%

Self time (built-ins, overhead, etc.)

 

 

2.392 s

77.8%

Totals

 

 

3.075 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 2.05 1 6 figure('Color','w'); 1 7 axes('Color','none','DataAspectRatio',[1 1 1],'NextPlot','add','XColor','w','YColor','w') 0.34 1 8 global L_MIN 1 9 L_MIN = 0.1; 0.68 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 (73 calls, 0.683 sec) Generated 17-Mar-2012 23:09:12 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

72

Lines where the most time was spent

Line Number

Code

Calls

Total Time

% Time

Time Plot

21

global L_MIN

73

0.342 s

50.0%

20

line(x_c,y_c);

73

0.342 s

50.0%

30

end

73

0 s

0%

29

end

9

0 s

0%

28

end

72

0 s

0%

All other lines

 

 

0 s

0%

Totals

 

 

0.683 s

100%

 

Children (called functions)

Function Name

Function Type

Calls

Total Time

% Time

Time Plot

rec_fractal>picture

subfunction

72

0 s

0%

Self time (built-ins, overhead, etc.)

 

 

0.683 s

100.0%

Totals

 

 

0.683 s

100%

 

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]