This is a static copy of a profile report

Home

imagesci\private\imbmpinfo>readVersion3xColormap (1 call, 0.016 sec)
Generated 15-Mar-2007 12:01:59 using real time.
M-subfunction in file C:\Program Files\MATLAB71\toolbox\matlab\imagesci\private\imbmpinfo.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
imagesci\private\imbmpinfo>readWin3xInfoM-subfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
392
msg = '';
10.000 s0.0%
394
end
10.000 s0.0%
390
else
10.000 s0.0%
377
if (info.NumColormapEntries &g...
10 s0%
375
info.NumColormapEntries = floo...
10 s0%
Other lines & overhead  0.016 s100.0%
Totals  0.016 s100% 
Children (called functions)
No children
M-Lint results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in file26
Non-code lines (comments, blank lines)12
Code lines (lines that can run)14
Code lines that did run5
Code lines that did not run9
Coverage (did run/can run)35.71 %
Function listing
   time   calls  line
372 function [info, msg] = readVersion3xColormap(fid, info)
373 %READVERSION3XCOLORMAP Read colormap entries for version 3.x bitmaps.
374
1 375 info.NumColormapEntries = floor((info.ImageDataOffset - ftell(fid))/4);
376
1 377 if (info.NumColormapEntries > 0)
378
379 [map,count] = fread(fid, info.NumColormapEntries*4, 'uint8');
380 if (count ~= info.NumColormapEntries*4)
381 msg = 'Truncated colormap data';
382 return;
383 else
384 msg = '';
385 end
386
387 map = reshape(map, 4, info.NumColormapEntries);
388 info.Colormap = double(flipud(map(1:3,:))')/255;
389
< 0.01 1 390 else
391
< 0.01 1 392 msg = '';
393
< 0.01 1 394 end
395
396
397

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