This is a static copy of a profile report

Home

Function details for snapnow>hasSimulinkThis is a static copy of a profile report

Home

snapnow>hasSimulink (Calls: 5, Time: 0.001 s)
Generated 28-Jun-2020 10:10:22 using performance time.
subfunction in file /Applications/MATLAB_R2018a.app/toolbox/matlab/codetools/snapnow.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
snapnow>leavingCellsubfunction5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
266
isSimulinkLoaded = is_simulink...
50.001 s83.0%
280
end
50.000 s0.1%
278
tf = false;
50.000 s0.0%
275
if isSimulinkLoaded
50.000 s0.0%
277
else
50.000 s0.0%
All other lines  0.000 s16.8%
Totals  0.001 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
is_simulink_loadedfunction50.001 s52.8%
Self time (built-ins, overhead, etc.)  0.001 s47.2%
Totals  0.001 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function18
Non-code lines (comments, blank lines)3
Code lines (lines that can run)15
Code lines that did run7
Code lines that did not run8
Coverage (did run/can run)46.67 %
Function listing
time 
Calls 
 line
 263 
function tf = hasSimulink
 264 

< 0.001 
      5 
 265
try 
  0.001 
      5 
 266
    isSimulinkLoaded = is_simulink_loaded; 
 267 
catch E
 268 
    if strcmp(E.identifier,'MATLAB:UndefinedFunction')
 269 
        isSimulinkLoaded = false;
 270 
    else
 271 
        rethrow(E)
 272 
    end
 273 
end
 274 

< 0.001 
      5 
 275
if isSimulinkLoaded 
 276 
    [tf,~] = license('checkout','simulink');
< 0.001 
      5 
 277
else 
< 0.001 
      5 
 278
    tf = false; 
< 0.001 
      5 
 279
end 
< 0.001 
      5 
 280
end 

Other subfunctions in this file are not included in this listing.