This is a static copy of a profile report

Home

mdbfileonpath>checkIfShadowed (1 call, 0.030 sec)
Generated 14-Nov-2016 07:47:08 using cpu time.
nested function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/codetools/mdbfileonpath.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
mdbfileonpathfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
112
xfiletorun = getFileToRun(inFi...
10.010 s33.3%
111
[path, fn, ext] = filepartsWit...
10.010 s33.3%
138
end
10 s0%
123
shadowStatus = PathUpdateDialo...
10 s0%
121
fullpath = xfiletorun;
10 s0%
All other lines  0.010 s33.3%
Totals  0.030 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
mdbfileonpath>getFileToRunsubfunction10.010 s33.3%
mdbfileonpath>filepartsWithoutPackagessubfunction20.010 s33.3%
mdbfileonpath>areFilenamesEqualsubfunction20 s0%
mdbfileonpath>areDirectoriesEqualsubfunction10 s0%
Self time (built-ins, overhead, etc.)  0.010 s33.3%
Totals  0.030 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function29
Non-code lines (comments, blank lines)8
Code lines (lines that can run)21
Code lines that did run9
Code lines that did not run12
Coverage (did run/can run)42.86 %
Function listing
time 
calls 
 line
 110 
    function [shadowStatus, fullpath] = checkIfShadowed(inFilename)           
  0.01 
      1 
 111 
        [path, fn, ext] = filepartsWithoutPackages(inFilename); 
  0.01 
      1 
 112 
        xfiletorun = getFileToRun(inFilename); 
 113 
        import com.mathworks.mlwidgets.dialog.PathUpdateDialog;
      1 
 114 
        if ~isempty(xfiletorun) 
      1 
 115 
            [xpath, xfn, xext] = filepartsWithoutPackages(xfiletorun); 
      1 
 116 
            arePathsEqual = areDirectoriesEqual(xpath, path, resolveSymbolicLinks); 
 117 
            
      1 
 118 
            if arePathsEqual && areFilenamesEqual(xfn, fn) && ... 
 119 
                    areFilenamesEqual(xext, ext)    
 120 
                % The executable fileparts are identical to the file passed in
      1 
 121 
                fullpath = xfiletorun; 
 122 
                % MATLAB will run the file
      1 
 123 
                shadowStatus = PathUpdateDialog.FILE_WILL_RUN; 
 124 
            elseif ~arePathsEqual || (~areFilenamesEqual(xfn, fn) && areFilenamesEqual(xext, ext))
 125 
                % If paths are equal, can only happen on unix: eg foo.m and FOO.m.
 126 
                fullpath = xfiletorun;
 127 
                if areDirectoriesEqual(xpath, pwd, resolveSymbolicLinks)
 128 
                    shadowStatus = PathUpdateDialog.FILE_SHADOWED_BY_PWD;
 129 
                else
 130 
                    % shadower on path
 131 
                    shadowStatus = PathUpdateDialog.FILE_SHADOWED_BY_TBX;
 132 
                end
 133 
            end         
 134 
        else
 135 
            fullpath = inFilename;
 136 
            shadowStatus = PathUpdateDialog.FILE_NOT_ON_PATH;
 137 
        end
      1 
 138 
    end 

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