This is a static copy of a profile report

Home

AcceptsReadableFilename>AcceptsReadableFilename.validateFilename (Calls: 2, Time: 0.026 s)
Generated 04-Jun-2021 04:11:06 using performance time.
class method in file C:\Program Files\MATLAB\R2020b\toolbox\shared\io\general\+matlab\+io\+internal\+functions\AcceptsReadableFilename.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...;AcceptsReadableFilename.set.Filenameclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
47
[fn, exts] = matlab.io.interna...
20.021 s78.8%
51
path = fileparts(fn{1});
20.003 s11.5%
52
if isempty(path) || isfolder(f...
20.002 s8.6%
46
if obj.LegacyFilenameValidatio...
20.000 s0.4%
55
end
20.000 s0.0%
All other lines  0.000 s0.6%
Totals  0.026 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
validateFileNamefunction20.019 s71.4%
filepartsfunction20.003 s10.7%
fullfilefunction20.002 s6.0%
ReadTable>ReadTable.getExtensionsclass method20.001 s4.8%
pwdfunction20.000 s0.1%
Self time (built-ins, overhead, etc.)  0.002 s7.0%
Totals  0.026 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function11
Non-code lines (comments, blank lines)1
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
  45 
        function [fn,exts] = validateFilename(obj,filename)
< 0.001 
      2 
  46
            if obj.LegacyFilenameValidation 
  0.021 
      2 
  47
                [fn, exts] = matlab.io.internal.validators.validateFileName(filename, obj.getExtensions()); 
  48 
            else
  49 
                [fn, exts] = matlab.io.internal.validators.validateFileName(filename);
< 0.001 
      2 
  50
            end 
  0.003 
      2 
  51
            path = fileparts(fn{1}); 
  0.002 
      2 
  52
            if isempty(path) || isfolder(fullfile(pwd,path)) 
  53 
                fn{1} = fullfile(pwd,fn{1});
< 0.001 
      2 
  54
            end 
< 0.001 
      2 
  55
        end 

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