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
Function Name | Function Type | Calls |
...etectImportOptionsSpreadsheet.execute | class method | 2 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
365 | matlab.io.internal.utility.ass... | 2 | 0.002 s | 85.0% | |
351 | if isempty(params) | 2 | 0.000 s | 5.9% | |
350 | persistent params | 2 | 0.000 s | 2.7% | |
366 | end | 2 | 0.000 s | 0.0% | |
364 | end | 2 | 0.000 s | 0.0% | |
All other lines | 0.000 s | 6.3% | |||
Totals | 0.002 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
assertUnsupportedParamsForFileType | function | 2 | 0.001 s | 69.1% | |
Self time (built-ins, overhead, etc.) | 0.001 s | 30.9% | |||
Totals | 0.002 s | 100% |
Total lines in function | 18 |
Non-code lines (comments, blank lines) | 2 |
Code lines (lines that can run) | 16 |
Code lines that did run | 5 |
Code lines that did not run | 11 |
Coverage (did run/can run) | 31.25 % |
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.