This is a static copy of a profile report Home 
Function details for snapnow>hasSimulink This 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)
Lines where the most time was spent   
Line Number Code Calls Total Time % Time Time Plot 266 isSimulinkLoaded = is_simulink... 5 0.001 s 83.0% 280 end 5 0.000 s 0.1% 278 tf = false; 5 0.000 s 0.0% 275 if isSimulinkLoaded 5 0.000 s 0.0% 277 else 5 0.000 s 0.0% All other lines     0.000 s 16.8% Totals     0.001 s 100%   
Children  (called functions)
Function Name Function Type Calls Total Time % Time Time Plot is_simulink_loaded function 5 0.001 s 52.8% Self time (built-ins, overhead, etc.)     0.001 s 47.2% Totals     0.001 s 100%   
Code Analyzer results  No Code Analyzer messages.
Coverage results  Show coverage for parent directoryTotal lines in function 18 Non-code lines (comments, blank lines) 3 Code lines (lines that can run) 15 Code lines that did run 7 Code lines that did not run 8 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.