This is a static copy of a profile report

Home

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 NameFunction TypeCalls
legacyM-function1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
6
see_mind_germ(content,[])
10.891 s19.2%
11
see_mind(content,connector,num...
10.703 s15.2%
33
see_mind(content,connector,num...
10.672 s14.5%
5
[content,connector,Q_theme]=bu...
10.641 s13.8%
10
[content,connector]=add_genera...
10.531 s11.4%
Other lines & overhead  1.203 s25.9%
Totals  4.641 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
see_mindM-function21.328 s28.6%
see_mind_germM-function10.875 s18.9%
build_thought_2M-function10.641 s13.8%
add_generator_newM-function10.500 s10.8%
find_open_down_bondM-function10.500 s10.8%
closeM-function30.063 s1.3%
ismemberM-function10.016 s0.3%
Self time (built-ins, overhead, etc.)  0.719 s15.5%
Totals  4.641 s100% 
M-Lint results
Line numberMessage
3The value assigned here to variable 'content' might never be used.
22Use of brackets [] is unnecessary. Use parentheses to group, if needed.
Coverage results
[ Show coverage for parent directory ]
Total lines in file43
Non-code lines (comments, blank lines)8
Code lines (lines that can run)35
Code lines that did run23
Code lines that did not run12
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