This is a static copy of a profile reportHome
help>getHelpText (2 calls, 0.031 sec)
Generated 15-Mar-2007 12:02:08 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\helptools\help.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Function Name | Function Type | Calls |
help | M-function | 2 |
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
283 | helpText = builtin('evalin', '... | 2 | 0.031 s | 99.9% |  |
236 | helpText = ''; | 2 | 0.000 s | 0.1% |  |
237 | dotind = []; %#ok | 2 | 0.000 s | 0.0% |  |
284 | end | 2 | 0 s | 0% |  |
281 | if isempty(helpText) | 2 | 0 s | 0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 0.031 s | 100% | |
Children (called functions)
No childrenM-Lint results
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 59 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 44 |
Code lines that did run | 10 |
Code lines that did not run | 34 |
Coverage (did run/can run) | 22.73 % |
Function listing
time calls line
234 function helpText = getHelpText(varargin)
235
< 0.01 2 236 helpText = '';
< 0.01 2 237 dotind = []; %#ok
2 238 if nargin > 0
2 239 topic = varargin{1};
240 % Check to see if it's a request for classnames or methods.
2 241 dotind = find(topic == '.');
2 242 if ~isempty(dotind)
243 slashind = find(topic == '/');
244 packageinfo = what(['@' topic(1:dotind(1)-1)]);
245 if ~isempty(packageinfo)
246 packagename = packageinfo(1).path;
247 atIdx = find(packagename=='@');
248 pkh = findpackage(packagename(atIdx(end)+1:end));
249 if ~isempty(pkh)
250 if strcmp(pkh.Documented, 'on')
251 if length(dotind) > 1
252 classname = topic(dotind(1)+1:dotind(2)-1);
253 classname = localFindDefiningClass(pkh, classname, topic(dotind(2)+1:end));
254 pathname = fullfile(packagename, ['@' classname]);
255 pathname = fullfile(pathname, [topic(dotind(2)+1:end) '.m']);
256 elseif length(slashind) == 1
257 classname = topic(dotind(1)+1:slashind(1)-1);
258 classname = localFindDefiningClass(pkh, classname, topic(slashind(1)+1:end));
259 pathname = fullfile(packagename, ['@' classname]);
260 pathname = fullfile(pathname, [topic(slashind(1)+1:end) '.m']);
261 else
262 classname = topic(dotind(end)+1:end);
263 pathname = fullfile(packagename, ['@' classname], [classname '.m']);
264 end
265 varargin{1} = pathname;
266 helpText = builtin('helpfunc', varargin{:});
267 return;
268 end
269 else
270 % this must be an oops class. use '/' as the separator so
271 % the builtin help function can find it.
272 topic(dotind) = '/';
273 varargin{1} = topic;
274 helpText = builtin('helpfunc', varargin{:});
275 return;
276 end
277 end
278 end
2 279 end
280
2 281 if isempty(helpText)
282 % Call helpfunc in the caller's scope.
0.03 2 283 helpText = builtin('evalin', '-scope', 'caller', 'builtin(''helpfunc'', varargin{:})');
2 284 end
285
286 % Uncomment when this is fast enough...
287 % if isempty(helpText) && isempty(dotind)
288 % % Look for help in methods.
289 % helpText = getMethodHelp(varargin{:});
290 % end
291
292
Other subfunctions in this file are not included in this listing.