This is a static copy of a profile report Home
Function details for is_simulink_loaded This 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)
Lines where the most time was spent
Line Number Code Calls Total Time % Time Time Plot 16 sLoaded = inmem('-isloaded','g... 9 0.000 s 41.9% 15 if isempty(sLoaded) || ~sLoade... 9 0.000 s 17.3% 18 loaded = sLoaded; 9 0.000 s 14.1% 14 persistent sLoaded; 9 0.000 s 9.0% 19 end 9 0.000 s 1.1% All other lines 0.000 s 16.6% Totals 0.001 s 100%
Children (called functions) No children
Code Analyzer results No Code Analyzer messages.
Coverage results Show coverage for parent directoryTotal lines in function 9 Non-code lines (comments, blank lines) 3 Code lines (lines that can run) 6 Code lines that did run 6 Code lines that did not run 0 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.