This is a static copy of a profile reportHome
think3 (1 call, 4.641 sec)
Generated 15-Mar-2007 12:01:43 using real time.
M-function in file c:\mind07\think3.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
legacy | M-function | 1 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
6 | see_mind_germ(content,[]) | 1 | 0.891 s | 19.2% |  |
11 | see_mind(content,connector,num... | 1 | 0.703 s | 15.2% |  |
33 | see_mind(content,connector,num... | 1 | 0.672 s | 14.5% |  |
5 | [content,connector,Q_theme]=bu... | 1 | 0.641 s | 13.8% |  |
10 | [content,connector]=add_genera... | 1 | 0.531 s | 11.4% |  |
Other lines & overhead | | | 1.203 s | 25.9% |  |
Totals | | | 4.641 s | 100% | |
Children (called functions)
M-Lint results
Line number | Message |
3 | The value assigned here to variable 'content' might never be used. |
22 | Use of brackets [] is unnecessary. Use parentheses to group, if needed. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 43 |
Non-code lines (comments, blank lines) | 8 |
Code lines (lines that can run) | 35 |
Code lines that did run | 23 |
Code lines that did not run | 12 |
Coverage (did run/can run) | 65.71 % |
Function listing
time calls line
1 function [content,connector]=think3(number)
2 %simulates GOLEM for given theme of thoughts
0.50 1 3 content=[];load('c:\mind_data06')
4 %create thought germ "content,connector"
0.64 1 5 [content,connector,Q_theme]=build_thought_2;
0.89 1 6 see_mind_germ(content,[])
1 7 pause(3)
0.06 1 8 close all
9 %[content,connector]=add_generator_new(content,connector);
0.53 1 10 [content,connector]=add_generator_new(content,connector,Q_theme);
0.70 1 11 see_mind(content,connector,number)
0.06 1 12 pause(3)
13
1 14 close all
< 0.01 1 15 w=[];
1 16 v=content(:,2);n_v=length(v);
< 0.01 1 17 k=1:n_v;
1 18 g=G(v(k));
1 19 w=[w,g.level];
0.02 1 20 if all(ismember(w,1))
21 figure('Units','Normalized','Position',[0 0 1 1])
22 text(.2,.1 ,['STOP THINKING! NO OPEN BONDS!'],'Color','r','FontSize',20)
23 axis off
24 pause(1)
25 return
26 end
27
28 %is any down bond open?
< 0.01 1 29 found=1;
1 30 while found==1
0.52 1 31 [i,h,omega,found]=find_open_down_bond(content,connector);%_mod???????????????
1 32 if found==0
0.67 1 33 see_mind(content,connector,number)
0.05 1 34 pause(1)
1 35 close all
1 36 return
37 elseif found==1
38 [content,connector,found]=connect_down_bond(content,connector, i,h,omega,Q_theme);
39 see_mind(content,connector,number)
40 pause(1)
41 end
42
43 end