This is a static copy of a profile report

Home

mdbfileonpath>doesFileExist (5 calls, 0.000 sec)
Generated 14-Nov-2016 07:47:07 using cpu time.
subfunction 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
mdbfileonpathfunction5
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
315
end
50 s0%
314
end
50 s0%
303
if fileObject.exists &&...
50 s0%
302
try
50 s0%
301
else
50 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
java.io.FileJava method100 s0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0 s0% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function20
Non-code lines (comments, blank lines)1
Code lines (lines that can run)19
Code lines that did run8
Code lines that did not run11
Coverage (did run/can run)42.11 %
Function listing
time 
calls 
 line
 296 
function existsOnDisk = doesFileExist(inFilename)
      5 
 297 
    fileObject = java.io.File(inFilename); 
      5 
 298 
    existsOnDisk = false; 
      5 
 299 
    if isempty(fileObject) 
 300 
        return;
      5 
 301 
    else 
      5 
 302 
        try 
      5 
 303 
            if fileObject.exists && fileObject.isFile 
 304 
                [~, fn1] = fileparts(inFilename);
 305 
                filename2 = char(fileObject.getCanonicalPath);
 306 
                [~, fn2] = fileparts(filename2);
 307 
                if isequal(fn1, fn2)
 308 
                    existsOnDisk = true;
 309 
                end
 310 
            end
 311 
        catch
 312 
            existsOnDisk = false;
 313 
        end
      5 
 314 
    end 
      5 
 315 
end 

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