This is a static copy of a profile report

Home

think1 (1 call, 4.969 sec)
Generated 15-Mar-2007 12:02:07 using real time.
M-function in file c:\mind07\think1.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.734 s14.8%
11
see_mind(content,connector,num...
10.672 s13.5%
39
see_mind(content,connector,num...
10.656 s13.2%
5
[content,connector,Q_theme,num...
10.563 s11.3%
31
[i,h,omega,found]=find_open_do...
10.516 s10.4%
Other lines & overhead  1.828 s36.8%
Totals  4.969 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
see_mindM-function21.313 s26.4%
add_generator_newM-function21.000 s20.1%
see_mind_germM-function10.734 s14.8%
build_thoughtM-function10.531 s10.7%
find_open_down_bondM-function10.516 s10.4%
connect_down_bondM-function10.203 s4.1%
closeM-function20.016 s0.3%
ismemberM-function10 s0%
Self time (built-ins, overhead, etc.)  0.656 s13.2%
Totals  4.969 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)7
Code lines (lines that can run)36
Code lines that did run26
Code lines that did not run10
Coverage (did run/can run)72.22 %
Function listing
   time   calls  line
1 function [content,connector]=think1
2 %simulatesmind for given theme of thoughts
0.50 1 3 content=[];load('c:\mind_data06');clear h1 h2
4 %create thought germ "content,connector"
0.56 1 5 [content,connector,Q_theme,number]=build_thought;
0.73 1 6 see_mind_germ(content,[])
1 7 pause(3)
0.02 1 8 close all
0.48 1 9 [content,connector]=add_generator_new(content,connector,Q_theme);
0.52 1 10 [content,connector]=add_generator_new(content,connector,Q_theme);
0.67 1 11 see_mind(content,connector,number)
0.05 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];
1 20 if all(ismember(w,1))
21 figure('Units','Normalized','Position',[0 0 1 1])
22 text(.2,.1 ,['STOP THINKING! NO ASSOCIATIONS!'],'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
33 see_mind(content,connector,number)
34 pause(1)
35 close all
36 return
1 37 elseif found==1
0.20 1 38 [content,connector,found]=connect_down_bond(content,connector, i,h,omega,Q_theme);
0.66 1 39 see_mind(content,connector,number)
0.06 1 40 pause(1)
1 41 end
42
1 43 end