This is a static copy of a profile report

Home

graphics/private/positions (40 calls, 0.066 sec)
Generated 05-Aug-2011 13:03:35 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/graphics/private/positions.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
print>LocalPrintsubfunction40
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
17
if strcmp( 'portrait', getget(...
400.022 s33.3%
13
unionPaperPos = LocalUnion( ha...
400.022 s33.3%
11
setset(handles, 'paperunits','...
400.011 s16.7%
10
savedUnits = getget(handles, '...
400.011 s16.7%
19
pj.GhostTranslation = unionPap...
400 s0%
All other lines  0 s0%
Totals  0.066 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
graphics/private/getgetfunction1200.033 s50.0%
graphics/private/positions>LocalUnionsubfunction400.022 s33.3%
graphics/private/setsetfunction800 s0%
Self time (built-ins, overhead, etc.)  0.011 s16.7%
Totals  0.066 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
[ Show coverage for parent directory ]
Total lines in function26
Non-code lines (comments, blank lines)11
Code lines (lines that can run)15
Code lines that did run8
Code lines that did not run7
Coverage (did run/can run)53.33 %
Function listing
   time   calls  line
1 function pj = positions( pj, handles )
2 %POSITIONS Determine the union of the PaperPositions of all objects passed in.
3 % Sets GhostExtent and GhostTranslation fields of PrintJob object.
4
5 % Copyright 1984-2002 The MathWorks, Inc.
6 % $Revision: 1.4 $ $Date: 2002/04/10 17:09:49 $
7
8 %Assuming all have same paper orientation and type
9 %Make sure they all use Points.
0.01 40 10 savedUnits = getget(handles, 'paperunits');
0.01 40 11 setset(handles, 'paperunits','points')
12
0.02 40 13 unionPaperPos = LocalUnion( handles );
40 14 pSize = getget(handles(1),'papersize');
40 15 setset(handles, 'paperunits', savedUnits );
16
0.02 40 17 if strcmp( 'portrait', getget(handles(1),'paperorientation') )
40 18 pj.GhostExtent = unionPaperPos([3 4]);
40 19 pj.GhostTranslation = unionPaperPos([1 2]);
20 elseif strcmp( 'rotated', getget(handles(1),'paperorientation') )
21 pj.GhostExtent = unionPaperPos([4 3]);
22 pj.GhostTranslation = [ (unionPaperPos(1)-(pSize(1)-unionPaperPos(3))) unionPaperPos(2) ];
23 else
24 pj.GhostExtent = unionPaperPos([4 3]);
25 pj.GhostTranslation = [ unionPaperPos(1) (unionPaperPos(2) - (pSize(2)-unionPaperPos(4))) ];
26 end

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