This is a static copy of a profile report

Home

scribe/private/createScribeUIMenuEntry (126 calls, 0.109 sec)
Generated 05-Aug-2011 13:02:29 using cpu time.
function in file /usr/local/MATLAB/R2011a/toolbox/matlab/scribe/private/createScribeUIMenuEntry.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
graph2dhelperfunction126
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
16
entry = localCreateLineWidthEn...
140.044 s40.0%
48
entry = localCreateEnumEntry(h...
280.033 s30.0%
38
entry = localCreateTextInterpr...
140.022 s20.0%
47
case 'EnumEntry'
560.011 s10.0%
53
end
280 s0%
All other lines  0 s0%
Totals  0.109 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
...UIMenuEntry>localCreateLineWidthEntrysubfunction140.044 s40.0%
...cribeUIMenuEntry>localCreateEnumEntrysubfunction280.033 s30.0%
...Entry>localCreateTextInterpreterEntrysubfunction140.022 s20.0%
...cribeUIMenuEntry>localCreateFontEntrysubfunction140 s0%
...ribeUIMenuEntry>localCreateColorEntrysubfunction280 s0%
...ibeUIMenuEntry>localCreateActionEntrysubfunction280 s0%
Self time (built-ins, overhead, etc.)  0.011 s10.0%
Totals  0.109 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function53
Non-code lines (comments, blank lines)11
Code lines (lines that can run)42
Code lines that did run28
Code lines that did not run14
Coverage (did run/can run)66.67 %
Function listing
   time   calls  line
1 function entry = createScribeUIMenuEntry(hFig,menuType,displayText,propName,undoName,varargin)
2 % Create a scribe entry for a UIContextMenu
3 % hFig - The figure to operate on
4 % menuType - String representing the
5 % expected result of calling the menu.
6 % displayText - The text to be displayed in the menu.
7 % propName - The name of the property being modified.
8 % undoName - The string to be shown in the undo menu
9
10 % Copyright 2006-2007 The MathWorks, Inc.
11
126 12 switch menuType
126 13 case 'Color'
28 14 entry = localCreateColorEntry(hFig,displayText,propName,undoName);
98 15 case 'LineWidth'
0.04 14 16 entry = localCreateLineWidthEntry(hFig,displayText,propName,undoName);
84 17 case 'LineStyle'
18 entry = localCreateLineStyleEntry(hFig,displayText,propName,undoName);
84 19 case 'HeadStyle'
20 entry = localCreateHeadStyleEntry(hFig,displayText,propName,undoName);
84 21 case 'HeadSize'
22 entry = localCreateHeadSizeEntry(hFig,displayText,propName,undoName);
84 23 case 'AddData'
24 entry = localCreateAddDataEntry(hFig,displayText);
84 25 case 'LegendToggle'
26 entry = localCreateLegendToggleEntry(hFig,displayText);
84 27 case 'Toggle'
28 entry = localCreateToggleEntry(hFig,displayText,propName,undoName);
84 29 case 'Marker'
30 entry = localCreateMarkerEntry(hFig,displayText,propName,undoName);
84 31 case 'MarkerSize'
32 entry = localCreateMarkerSizeEntry(hFig,displayText,propName,undoName);
84 33 case 'EditText'
34 entry = localCreateEditTextEntry(hFig,displayText);
84 35 case 'Font'
14 36 entry = localCreateFontEntry(hFig,displayText,propName,undoName);
70 37 case 'TextInterpreter'
0.02 14 38 entry = localCreateTextInterpreterEntry(hFig,displayText,propName,undoName);
56 39 case 'CloseFigure'
40 entry = localCreateCloseFigureEntry(hFig,displayText);
56 41 case 'BarWidth'
42 entry = localCreateBarWidthEntry(hFig,displayText,propName,undoName);
56 43 case 'BarLayout'
44 entry = localCreateBarLayoutEntry(hFig,displayText,propName,undoName);
56 45 case 'AutoScaleFactor'
46 entry = localCreateAutoScaleFactorEntry(hFig,displayText,propName,undoName);
0.01 56 47 case 'EnumEntry'
0.03 28 48 entry = localCreateEnumEntry(hFig,displayText,propName,varargin{:},undoName);
28 49 case 'CustomEnumEntry'
50 entry = localCreateCustomEnumEntry(hFig,displayText,propName,varargin{:});
28 51 case 'GeneralAction'
28 52 entry = localCreateActionEntry(hFig,displayText,varargin{:});
28 53 end

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