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: 9, Time: 0.001 s)
Generated 02-May-2020 21:54:35 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
graphics/private/isslhandlefunction9
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
16
sLoaded = inmem('-isloaded','g...
90.000 s41.9%
15
if isempty(sLoaded) || ~sLoade...
90.000 s17.3%
18
loaded = sLoaded;
90.000 s14.1%
14
persistent sLoaded;
90.000 s9.0%
19
end
90.000 s1.1%
All other lines  0.000 s16.6%
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 
      9 
  14
    persistent sLoaded; 
< 0.001 
      9 
  15
    if isempty(sLoaded) || ~sLoaded 
< 0.001 
      9 
  16
        sLoaded = inmem('-isloaded','get_param'); 
< 0.001 
      9 
  17
    end 
< 0.001 
      9 
  18
    loaded = sLoaded; 
< 0.001 
      9 
  19
end 

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