This is a static copy of a profile report

Home

graphics/private/modifyUnitsForPrint>getObjWithUnits (6 calls, 0.040 sec)
Generated 14-Nov-2016 07:47:19 using cpu time.
nested function in file /usr/local/MATLAB/MATLAB_Production_Server/R2015a/toolbox/matlab/graphics/private/modifyUnitsForPrint.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graphics/private/modifyUnitsForPrintfunction6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
84
objWithUnits = findall(h, 'fla...
300.040 s100.0%
98
end
60 s0%
97
end
300 s0%
96
end
300 s0%
95
objUnitsModified.(units{unitsI...
300 s0%
All other lines  0 s0%
Totals  0.040 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
findallfunction300.040 s100.0%
Self time (built-ins, overhead, etc.)  0 s0%
Totals  0.040 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function19
Non-code lines (comments, blank lines)9
Code lines (lines that can run)10
Code lines that did run9
Code lines that did not run1
Coverage (did run/can run)90.00 %
Function listing
time 
calls 
 line
  80 
    function objUnitsModified = getObjWithUnits(h, unitsProp, units)
  81 
        % Returns an array of objects which have the unitsProp property
  82 
        % value set to the specified units.
      6 
  83 
        for unitsIdx = 1:length(units)  
  0.04 
     30 
  84 
            objWithUnits = findall(h, 'flat', unitsProp, units{unitsIdx}); 
  85 
        
  86 
            % Don't include the figure itself in this list
     30 
  87 
            objUnitsModified.(units{unitsIdx}).handles = objWithUnits(~ishghandle(objWithUnits, 'figure')); 
  88 

  89 
            % The get command returns a cell array when passed multiple
  90 
            % handles. To keep the code simple downstream, wrap the single
  91 
            % handle result in a cell array too.
     30 
  92 
            if length(objUnitsModified.(units{unitsIdx}).handles) == 1 
  93 
                objUnitsModified.(units{unitsIdx}).positions = {get(objUnitsModified.(units{unitsIdx}).handles,'Position')};
     30 
  94 
            else 
     30 
  95 
                objUnitsModified.(units{unitsIdx}).positions = get(objUnitsModified.(units{unitsIdx}).handles,'Position'); 
     30 
  96 
            end 
     30 
  97 
        end 
      6 
  98 
    end 

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