This is a static copy of a profile report

Home

Function details for is_simulink_loadedThis is a static copy of a profile report

Home

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

Parents (calling functions)

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

Line NumberCodeCallsTotal Time% TimeTime Plot
16
sLoaded = inmem('-isloaded','g...
50.000 s29.8%
15
if isempty(sLoaded) || ~sLoade...
50.000 s24.7%
18
loaded = sLoaded;
50.000 s15.6%
14
persistent sLoaded;
50.000 s11.6%
19
end
50.000 s0.4%
All other lines  0.000 s17.9%
Totals  0.001 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function9
Non-code lines (comments, blank lines)3
Code lines (lines that can run)6
Code lines that did run6
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  11 
function loaded = is_simulink_loaded
  12 
    % If get_param is in memory then Simulink has been loaded.  And once
  13 
    % it's loaded it never gets unloaded.
< 0.001 
      5 
  14
    persistent sLoaded; 
< 0.001 
      5 
  15
    if isempty(sLoaded) || ~sLoaded 
< 0.001 
      5 
  16
        sLoaded = inmem('-isloaded','get_param'); 
< 0.001 
      5 
  17
    end 
< 0.001 
      5 
  18
    loaded = sLoaded; 
< 0.001 
      5 
  19
end 

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