This is a static copy of a profile reportHome
imuitools\private\getWorkArea (2 calls, 0.016 sec)
Generated 15-Mar-2007 12:02:04 using real time.
M-function in file C:\Program Files\MATLAB71\toolbox\images\imuitools\private\getWorkArea.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
27 | w.left = win_wa(1); | 2 | 0.000 s | 0.1% |  |
28 | w.right = win_wa(3); | 2 | 0.000 s | 0.0% |  |
29 | w.top = screen_height - win_wa... | 2 | 0.000 s | 0.0% |  |
30 | w.bottom = w.top - win_wa(4); | 2 | 0.000 s | 0.0% |  |
15 | screen_width = ss(3); | 2 | 0.000 s | 0.0% |  |
Other lines & overhead | | | 0.016 s | 99.8% |  |
Totals | | | 0.016 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
ispc | M-function | 2 | 0 s | 0% |  |
imuitools\private\winGetWorkArea | MEX-function | 2 | 0 s | 0% |  |
Self time (built-ins, overhead, etc.) | | | 0.016 s | 100.0% |  |
Totals | | | 0.016 s | 100% | |
M-Lint results
No M-Lint messages.Coverage results
[ Show coverage for parent directory ]
Total lines in file | 36 |
Non-code lines (comments, blank lines) | 15 |
Code lines (lines that can run) | 21 |
Code lines that did run | 11 |
Code lines that did not run | 10 |
Coverage (did run/can run) | 52.38 % |
Function listing
time calls line
1 function w = getWorkArea
2 %getWorkArea Return the screen working area, accounting for the Task Bar.
3 % s = getWorkArea returns a structure containing the left, right, top,
4 % and bottom borders (in pixel units) of the screen's working area.
5 % Working area is defined to be that area of the screen not obscured by
6 % the Windows task bar. On non-Windows platforms, getWorkArea returns
7 % a working area that is the entire screen space as returned by
8 % get(0,'ScreenSize').
9 % <put in a for-example>
10
11 % Copyright 1993-2004 The MathWorks, Inc.
12 % $Revision: 1.1.8.1 $ $Date: 2004/08/10 01:50:09 $
13
2 14 ss = get(0, 'ScreenSize');
< 0.01 2 15 screen_width = ss(3);
< 0.01 2 16 screen_height = ss(4);
17
< 0.01 2 18 if screen_width <= 1
19 screen_width = 1024;
20 end
< 0.01 2 21 if screen_height <= 1
22 screen_height = 768;
23 end
24
2 25 if ispc
2 26 win_wa = winGetWorkArea;
< 0.01 2 27 w.left = win_wa(1);
< 0.01 2 28 w.right = win_wa(3);
< 0.01 2 29 w.top = screen_height - win_wa(2);
< 0.01 2 30 w.bottom = w.top - win_wa(4);
31 else
32 w.left = 0;
33 w.right = screen_width;
34 w.top = screen_height;
35 w.bottom = 0;
36 end