This is a static copy of a profile report

Home

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

Home

preamble (Calls: 1, Time: 0.001 s)
Generated 07-Jul-2019 01:13:14 using performance time.
function in file C:\Users\fan\CodeDynaAsset\preamble.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
ffs_abz_set_default_paramfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
8
[default_params{1:length(varar...
10.000 s28.0%
9
[bl_gen_path] = default_params...
10.000 s24.4%
7
default_params = {bl_gen_path}...
10.000 s22.4%
20
end
10.000 s0.4%
12
st_root_path = 'C:/Users/fan/C...
10.000 s0.0%
All other lines  0.000 s24.7%
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 function20
Non-code lines (comments, blank lines)10
Code lines (lines that can run)10
Code lines that did run7
Code lines that did not run3
Coverage (did run/can run)70.00 %
Function listing
time 
Calls 
 line
   1 
function [st_root_path] = preamble(varargin)
   2 
%% PREAMBLE gets path to root and generates all path
   3 
% generate path by default, but when calling this from other functions to
   4 
% get st_root_path, do not generate path.
   5 

      1 
   6
bl_gen_path = true; 
< 0.001 
      1 
   7
default_params = {bl_gen_path}; 
< 0.001 
      1 
   8
[default_params{1:length(varargin)}] = varargin{:}; 
< 0.001 
      1 
   9
[bl_gen_path] = default_params{:}; 
  10 

  11 
%% Root Path
< 0.001 
      1 
  12
st_root_path = 'C:/Users/fan/CodeDynaAsset/'; 
  13 

  14 
%% Add to Path
      1 
  15
if (bl_gen_path) 
  16 
    rmpath(genpath(st_root_path))
  17 
    addpath(genpath(st_root_path))
  18 
end
  19 

< 0.001 
      1 
  20
end