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: 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)
Lines where the most time was spent
Line Number Code Calls Total Time % Time Time Plot 16 sLoaded = inmem('-isloaded','g... 5 0.000 s 29.8% 15 if isempty(sLoaded) || ~sLoade... 5 0.000 s 24.7% 18 loaded = sLoaded; 5 0.000 s 15.6% 14 persistent sLoaded; 5 0.000 s 11.6% 19 end 5 0.000 s 0.4% All other lines 0.000 s 17.9% 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 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.