This is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
...etectImportOptionsSpreadsheet.executeclass method2
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
365
matlab.io.internal.utility.ass...
20.002 s85.0%
351
if isempty(params)
20.000 s5.9%
350
persistent params
20.000 s2.7%
366
end
20.000 s0.0%
364
end
20.000 s0.0%
All other lines  0.000 s6.3%
Totals  0.002 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
assertUnsupportedParamsForFileTypefunction20.001 s69.1%
Self time (built-ins, overhead, etc.)  0.001 s30.9%
Totals  0.002 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function18
Non-code lines (comments, blank lines)2
Code lines (lines that can run)16
Code lines that did run5
Code lines that did not run11
Coverage (did run/can run)31.25 %
Function listing
time 
Calls 
 line
 349 
function checkWrongParamsWrongType(supplied)
< 0.001 
      2 
 350
persistent params 
< 0.001 
      2 
 351
if isempty(params) 
 352 
    me = {?matlab.io.internal.shared.DelimitedTextInputs, ...
 353 
        ?matlab.io.internal.shared.FixedWidthInputs, ...
 354 
        ?matlab.io.internal.shared.TextInputs,...
 355 
        ?matlab.io.internal.shared.NumericVarOptsInputs};
 356 
    
 357 
    params = cell(1,3);
 358 
    for i = 1:numel(me)
 359 
        params{i} = string({me{i}.PropertyList([me{i}.PropertyList.Parameter]).Name});
 360 
    end
 361 
    params = ["DurationType" params{:}];
 362 
    params = ["HexType" params{:}];
 363 
    params = ["BinaryType" params{:}];
< 0.001 
      2 
 364
end 
  0.002 
      2 
 365
matlab.io.internal.utility.assertUnsupportedParamsForFileType(params,supplied,'spreadsheet') 
< 0.001 
      2 
 366
end 

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