This is a static copy of a profile report

Home

imagesci/private/isjpg (4 calls, 0.000 sec)
Generated 05-Aug-2011 13:01:19 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/imagesci/private/isjpg.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
imagesci/private/imftypefunction4
Lines where the most time was spent
No measurable time spent in this function

Line NumberCodeCallsTotal Time% TimeTime Plot
15
end
40 s0%
14
tf = isequal(sig, [255; 216]);
40 s0%
13
fclose(fid);
40 s0%
12
sig = fread(fid, 2, 'uint8');
40 s0%
11
else
40 s0%
All other lines  0 s0%
Totals  0 s0% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function15
Non-code lines (comments, blank lines)7
Code lines (lines that can run)8
Code lines that did run7
Code lines that did not run1
Coverage (did run/can run)87.50 %
Function listing
   time   calls  line
1 function tf = isjpg(filename)
2 %ISJPG Returns true for a JPG file.
3 % TF = ISJPG(FILENAME)
4
5 % Copyright 1984-2003 The MathWorks, Inc.
6 % $Revision: 1.1.6.2 $ $Date: 2005/11/15 01:12:35 $
7
4 8 fid = fopen(filename, 'r', 'ieee-le');
4 9 if (fid < 0)
10 tf = false;
4 11 else
4 12 sig = fread(fid, 2, 'uint8');
4 13 fclose(fid);
4 14 tf = isequal(sig, [255; 216]);
4 15 end