|
0
|
1 |
|
|
|
2 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
|
|
3 |
<html> |
|
|
4 |
<head> |
|
|
5 |
<title>YUI Library Examples: Profiler: Simple Profiling Example</title> |
|
|
6 |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> |
|
|
7 |
<link rel="stylesheet" type="text/css" href="../../assets/yui.css" > |
|
|
8 |
|
|
|
9 |
<style> |
|
|
10 |
/*Supplemental CSS for the YUI distribution*/ |
|
|
11 |
#custom-doc { width: 95%; min-width: 950px; } |
|
|
12 |
#pagetitle {background-image: url(../../assets/bg_hd.gif);} |
|
|
13 |
/* #pagetitle h1 {background-image: url(../../assets/title_h_bg.gif);}*/ |
|
|
14 |
</style> |
|
|
15 |
|
|
|
16 |
<link rel="stylesheet" type="text/css" href="../../assets/dpSyntaxHighlighter.css"> |
|
|
17 |
|
|
|
18 |
<!--there is no custom header content for this example--> |
|
|
19 |
|
|
|
20 |
<link type="text/css" rel="stylesheet" href="../../build/cssfonts/fonts-min.css" /> |
|
|
21 |
<script type="text/javascript" src="../../build/yui/yui-debug.js"></script> |
|
|
22 |
|
|
|
23 |
</head> |
|
|
24 |
<body id="yahoo-com" class=" yui-skin-sam"> |
|
|
25 |
<div id="custom-doc" class="yui-t2"> |
|
|
26 |
<div id="hd"> |
|
|
27 |
<div id="ygunav"> |
|
|
28 |
<p> |
|
|
29 |
<em> |
|
|
30 |
<a href="http://developer.yahoo.com/yui/3/">YUI 3.x Home</a> <i> - </i> |
|
|
31 |
</em> |
|
|
32 |
</p> |
|
|
33 |
<form action="http://search.yahoo.com/search" id="sitesearchform"> |
|
|
34 |
<input name="vs" type="hidden" value="developer.yahoo.com"> |
|
|
35 |
<input name="vs" type="hidden" value="yuiblog.com"> |
|
|
36 |
<div id="sitesearch"> |
|
|
37 |
<label for="searchinput">Site Search (YDN & YUIBlog): </label> |
|
|
38 |
<input type="text" id="searchinput" name="p"> |
|
|
39 |
<input type="submit" value="Search" id="searchsubmit" class="ygbt"> |
|
|
40 |
</div> |
|
|
41 |
</form> |
|
|
42 |
</div> |
|
|
43 |
<div id="ygma"><a href="../../"><img src="../../assets/logo.gif" border="0" width="200" height="93"></a></div> |
|
|
44 |
<div id="pagetitle"><h1>YUI Library Examples: Profiler: Simple Profiling Example</h1></div> |
|
|
45 |
</div> |
|
|
46 |
<div id="bd"> |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
<div id="yui-main"> |
|
|
50 |
<div class="yui-b"> |
|
|
51 |
<div class="yui-ge"> |
|
|
52 |
<div class="yui-u first example" id="main"> |
|
|
53 |
|
|
|
54 |
<h2>Profiler: Simple Profiling Example</h2> |
|
|
55 |
|
|
|
56 |
<div id="example" class="promo"> |
|
|
57 |
<div class="example-intro"> |
|
|
58 |
<p>This example shows basic usage of the Profiler for profiling a single function. A single function is |
|
|
59 |
profiled and all of the information displayed.</p> </div> |
|
|
60 |
|
|
|
61 |
<div class="module example-container "> |
|
|
62 |
<div id="example-canvas" class="bd"> |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
<!--BEGIN SOURCE CODE FOR EXAMPLE =============================== --> |
|
|
66 |
|
|
|
67 |
<script type="text/javascript"> |
|
|
68 |
|
|
|
69 |
YUI({base:"../../build/", timeout: 10000, filter:"debug", logInclude: {profiler:true, example:true}}).use("event", "profiler",function (Y) { |
|
|
70 |
|
|
|
71 |
Y.namespace("example.profiler"); |
|
|
72 |
|
|
|
73 |
//object with method to profile |
|
|
74 |
Y.example.profiler.MathHelper = { |
|
|
75 |
factorial : function (num){ |
|
|
76 |
if (num > 1) { |
|
|
77 |
return num * Y.example.profiler.MathHelper.factorial(num-1); |
|
|
78 |
} else { |
|
|
79 |
return 1; |
|
|
80 |
} |
|
|
81 |
} |
|
|
82 |
}; |
|
|
83 |
|
|
|
84 |
//register the function |
|
|
85 |
Y.Profiler.registerFunction("Y.example.profiler.MathHelper.factorial", Y.example.profiler.MathHelper); |
|
|
86 |
|
|
|
87 |
Y.on("domready", function (){ |
|
|
88 |
|
|
|
89 |
Y.example.profiler.MathHelper.factorial(10); |
|
|
90 |
|
|
|
91 |
var calls = Y.Profiler.getCallCount("Y.example.profiler.MathHelper.factorial"); |
|
|
92 |
var max = Y.Profiler.getMax("Y.example.profiler.MathHelper.factorial"); |
|
|
93 |
var min = Y.Profiler.getMin("Y.example.profiler.MathHelper.factorial"); |
|
|
94 |
var avg = Y.Profiler.getAverage("Y.example.profiler.MathHelper.factorial"); |
|
|
95 |
|
|
|
96 |
Y.Profiler.unregisterFunction("Y.example.profiler.MathHelper.factorial"); |
|
|
97 |
|
|
|
98 |
var msg = "Method Y.example.profiler.MathHelper was run " + calls + "times.\n" + |
|
|
99 |
"The average time was " + avg + "ms.\n" + |
|
|
100 |
"The max time was " + max + " ms.\n" + |
|
|
101 |
"The min time was " + min + " ms."; |
|
|
102 |
alert(msg); |
|
|
103 |
}); |
|
|
104 |
}); |
|
|
105 |
</script> |
|
|
106 |
<!--END SOURCE CODE FOR EXAMPLE =============================== --> |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
</div> |
|
|
110 |
</div> |
|
|
111 |
</div> |
|
|
112 |
|
|
|
113 |
<h2 class="first">Simple Profiling Example</h2> |
|
|
114 |
|
|
|
115 |
<p>This example begins by creating a namespace:</p> |
|
|
116 |
<div id="syntax1" class="yui-syntax-highlight"><div class="numbers"><pre class="javascript" style="font-family:monospace;"><ol><li class="li1"><div class="de1">Y.<span class="kw2">namespace</span><span class="br0">(</span><span class="st0">"example.profiler"</span><span class="br0">)</span><span class="sy0">;</span></div></li></ol></pre></div><div class="nonumbers"><pre class="javascript" style="font-family:monospace;">Y.<span class="kw2">namespace</span><span class="br0">(</span><span class="st0">"example.profiler"</span><span class="br0">)</span><span class="sy0">;</span></pre></div><textarea id="syntax1-plain">Y.namespace("example.profiler");</textarea></div><p>This namespace serves as the core object upon which others will be added (to prevent creating global objects).</p> |
|
|
117 |
<p>Next, an object is created with a method:</p> |
|
|
118 |
<div id="syntax2" class="yui-syntax-highlight"><div class="numbers"><pre class="javascript" style="font-family:monospace;"><ol><li class="li1"><div class="de1"><span class="co1">//object with method to profile</span></div></li><li class="li1"><div class="de1">Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span> <span class="sy0">=</span> <span class="br0">{</span></div></li><li class="li1"><div class="de1"> factorial <span class="sy0">:</span> <span class="kw2">function</span> <span class="br0">(</span>num<span class="br0">)</span><span class="br0">{</span></div></li><li class="li1"><div class="de1"> <span class="kw1">if</span> <span class="br0">(</span>num <span class="sy0">></span> <span class="nu0">1</span><span class="br0">)</span> <span class="br0">{</span></div></li><li class="li2"><div class="de2"> <span class="kw1">return</span> num <span class="sy0">*</span> MathHelper.<span class="me1">factorial</span><span class="br0">(</span>num<span class="sy0">-</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> <span class="br0">}</span> <span class="kw1">else</span> <span class="br0">{</span></div></li><li class="li1"><div class="de1"> <span class="kw1">return</span> <span class="nu0">1</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> <span class="br0">}</span></div></li><li class="li1"><div class="de1"> <span class="br0">}</span></div></li><li class="li2"><div class="de2"><span class="br0">}</span><span class="sy0">;</span></div></li></ol></pre></div><div class="nonumbers"><pre class="javascript" style="font-family:monospace;"><span class="co1">//object with method to profile</span> |
|
|
119 |
Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span> <span class="sy0">=</span> <span class="br0">{</span> |
|
|
120 |
factorial <span class="sy0">:</span> <span class="kw2">function</span> <span class="br0">(</span>num<span class="br0">)</span><span class="br0">{</span> |
|
|
121 |
<span class="kw1">if</span> <span class="br0">(</span>num <span class="sy0">></span> <span class="nu0">1</span><span class="br0">)</span> <span class="br0">{</span> |
|
|
122 |
<span class="kw1">return</span> num <span class="sy0">*</span> MathHelper.<span class="me1">factorial</span><span class="br0">(</span>num<span class="sy0">-</span><span class="nu0">1</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
123 |
<span class="br0">}</span> <span class="kw1">else</span> <span class="br0">{</span> |
|
|
124 |
<span class="kw1">return</span> <span class="nu0">1</span><span class="sy0">;</span> |
|
|
125 |
<span class="br0">}</span> |
|
|
126 |
<span class="br0">}</span> |
|
|
127 |
<span class="br0">}</span><span class="sy0">;</span></pre></div><textarea id="syntax2-plain">//object with method to profile |
|
|
128 |
Y.example.profiler.MathHelper = { |
|
|
129 |
factorial : function (num){ |
|
|
130 |
if (num > 1) { |
|
|
131 |
return num * MathHelper.factorial(num-1); |
|
|
132 |
} else { |
|
|
133 |
return 1; |
|
|
134 |
} |
|
|
135 |
} |
|
|
136 |
};</textarea></div><p>This object, <code>MathHelper</code> contains a single method called <code>factorial()</code> that computes the |
|
|
137 |
factorial of a given number. Any time <code>factorial()</code> is called, the argument indicates how many times |
|
|
138 |
the function will be recursively called. For example, <code>factorial(10)</code> results in the funtion being |
|
|
139 |
called 10 times. This makes it an ideal test case for profiling because the results are so predictable.</p> |
|
|
140 |
<h3>Registering the function</h3> |
|
|
141 |
<p>The most important step to profile this function is to call <code>registerFunction()</code> with the fully-qualified |
|
|
142 |
function name, which is <code>Y.example.profiler.MathHelper</code>, and the object:</p> |
|
|
143 |
<div id="syntax3" class="yui-syntax-highlight"><div class="numbers"><pre class="javascript" style="font-family:monospace;"><ol><li class="li1"><div class="de1">Y.<span class="me1">Profiler</span>.<span class="me1">registerFunction</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="sy0">,</span> Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span><span class="br0">)</span><span class="sy0">;</span></div></li></ol></pre></div><div class="nonumbers"><pre class="javascript" style="font-family:monospace;">Y.<span class="me1">Profiler</span>.<span class="me1">registerFunction</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="sy0">,</span> Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span><span class="br0">)</span><span class="sy0">;</span></pre></div><textarea id="syntax3-plain">Y.Profiler.registerFunction("Y.example.profiler.MathHelper.factorial", Y.example.profiler.MathHelper);</textarea></div><p>Since this function is not fully accessible in the global scope, the owner object must be passed in |
|
|
144 |
as the second argument.</p> |
|
|
145 |
|
|
|
146 |
<h3>Running the example</h3> |
|
|
147 |
|
|
|
148 |
<p>With everything setup, the last step is to run the code. This initialization is assigned to take place when the DOM has been loaded |
|
|
149 |
by using the <code>"domready"</code> custom event:</p> |
|
|
150 |
|
|
|
151 |
<div id="syntax4" class="yui-syntax-highlight"><div class="numbers"><pre class="javascript" style="font-family:monospace;"><ol><li class="li1"><div class="de1">Y.<span class="me1">on</span><span class="br0">(</span><span class="st0">"domready"</span><span class="sy0">,</span> <span class="kw2">function</span> <span class="br0">(</span><span class="br0">)</span><span class="br0">{</span></div></li><li class="li1"><div class="de1"> Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span>.<span class="me1">factorial</span><span class="br0">(</span><span class="nu0">10</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> </div></li><li class="li1"><div class="de1"> <span class="kw2">var</span> calls <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getCallCount</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li2"><div class="de2"> <span class="kw2">var</span> max <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getMax</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> <span class="kw2">var</span> min <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getMin</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> <span class="kw2">var</span> avg <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getAverage</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> </div></li><li class="li1"><div class="de1"> Y.<span class="me1">Profiler</span>.<span class="me1">unregisterFunction</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span></div></li><li class="li2"><div class="de2"> </div></li><li class="li1"><div class="de1"> <span class="kw2">var</span> msg <span class="sy0">=</span> <span class="st0">"Method Y.example.profiler.MathHelper was run "</span> <span class="sy0">+</span> calls <span class="sy0">+</span> <span class="st0">"times.</span></div></li><li class="li1"><div class="de1"><span class="st0">"</span> <span class="sy0">+</span></div></li><li class="li1"><div class="de1"> <span class="st0">"The average time was "</span> <span class="sy0">+</span> avg <span class="sy0">+</span> <span class="st0">"ms.</span></div></li><li class="li1"><div class="de1"><span class="st0">"</span> <span class="sy0">+</span></div></li><li class="li2"><div class="de2"> <span class="st0">"The max time was "</span> <span class="sy0">+</span> max <span class="sy0">+</span> <span class="st0">" ms.</span></div></li><li class="li1"><div class="de1"><span class="st0">"</span> <span class="sy0">+</span></div></li><li class="li1"><div class="de1"> <span class="st0">"The min time was "</span> <span class="sy0">+</span> min <span class="sy0">+</span> <span class="st0">" ms."</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"> <span class="kw3">alert</span><span class="br0">(</span>msg<span class="br0">)</span><span class="sy0">;</span></div></li><li class="li1"><div class="de1"><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></div></li></ol></pre></div><div class="nonumbers"><pre class="javascript" style="font-family:monospace;">Y.<span class="me1">on</span><span class="br0">(</span><span class="st0">"domready"</span><span class="sy0">,</span> <span class="kw2">function</span> <span class="br0">(</span><span class="br0">)</span><span class="br0">{</span> |
|
|
152 |
Y.<span class="me1">example</span>.<span class="me1">profiler</span>.<span class="me1">MathHelper</span>.<span class="me1">factorial</span><span class="br0">(</span><span class="nu0">10</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
153 |
|
|
|
154 |
<span class="kw2">var</span> calls <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getCallCount</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
155 |
<span class="kw2">var</span> max <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getMax</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
156 |
<span class="kw2">var</span> min <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getMin</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
157 |
<span class="kw2">var</span> avg <span class="sy0">=</span> Y.<span class="me1">Profiler</span>.<span class="me1">getAverage</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
158 |
|
|
|
159 |
Y.<span class="me1">Profiler</span>.<span class="me1">unregisterFunction</span><span class="br0">(</span><span class="st0">"Y.example.profiler.MathHelper.factorial"</span><span class="br0">)</span><span class="sy0">;</span> |
|
|
160 |
|
|
|
161 |
<span class="kw2">var</span> msg <span class="sy0">=</span> <span class="st0">"Method Y.example.profiler.MathHelper was run "</span> <span class="sy0">+</span> calls <span class="sy0">+</span> <span class="st0">"times. |
|
|
162 |
"</span> <span class="sy0">+</span> |
|
|
163 |
<span class="st0">"The average time was "</span> <span class="sy0">+</span> avg <span class="sy0">+</span> <span class="st0">"ms. |
|
|
164 |
"</span> <span class="sy0">+</span> |
|
|
165 |
<span class="st0">"The max time was "</span> <span class="sy0">+</span> max <span class="sy0">+</span> <span class="st0">" ms. |
|
|
166 |
"</span> <span class="sy0">+</span> |
|
|
167 |
<span class="st0">"The min time was "</span> <span class="sy0">+</span> min <span class="sy0">+</span> <span class="st0">" ms."</span><span class="sy0">;</span> |
|
|
168 |
<span class="kw3">alert</span><span class="br0">(</span>msg<span class="br0">)</span><span class="sy0">;</span> |
|
|
169 |
<span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></pre></div><textarea id="syntax4-plain">Y.on("domready", function (){ |
|
|
170 |
Y.example.profiler.MathHelper.factorial(10); |
|
|
171 |
|
|
|
172 |
var calls = Y.Profiler.getCallCount("Y.example.profiler.MathHelper.factorial"); |
|
|
173 |
var max = Y.Profiler.getMax("Y.example.profiler.MathHelper.factorial"); |
|
|
174 |
var min = Y.Profiler.getMin("Y.example.profiler.MathHelper.factorial"); |
|
|
175 |
var avg = Y.Profiler.getAverage("Y.example.profiler.MathHelper.factorial"); |
|
|
176 |
|
|
|
177 |
Y.Profiler.unregisterFunction("Y.example.profiler.MathHelper.factorial"); |
|
|
178 |
|
|
|
179 |
var msg = "Method Y.example.profiler.MathHelper was run " + calls + "times. |
|
|
180 |
" + |
|
|
181 |
"The average time was " + avg + "ms. |
|
|
182 |
" + |
|
|
183 |
"The max time was " + max + " ms. |
|
|
184 |
" + |
|
|
185 |
"The min time was " + min + " ms."; |
|
|
186 |
alert(msg); |
|
|
187 |
});</textarea></div><p>The code block begins by calling <code>factorial()</code> once, which gets profiled. Then, the information |
|
|
188 |
about the function can be retrieved from the Profiler. This information is output in an alert, |
|
|
189 |
displaying the number of times that the function was called along with the minimum, maximum, and average |
|
|
190 |
running times. Since this is a very simple function, the run times will most likely be 0ms on most machines.</p> </div> |
|
|
191 |
<div class="yui-u sidebar"> |
|
|
192 |
|
|
|
193 |
|
|
|
194 |
<div id="examples" class="mod box4"> |
|
|
195 |
<div class="hd"> |
|
|
196 |
<h4> |
|
|
197 |
Profiler Examples:</h4> |
|
|
198 |
</div> |
|
|
199 |
<div class="bd"> |
|
|
200 |
<ul> |
|
|
201 |
<li class='selected'><a href='../profiler/profiler-simple-example.html'>Simple Profiling Example</a></li><li><a href='../profiler/profiler-object-example.html'>Object Profiling Example</a></li> </ul> |
|
|
202 |
</div> |
|
|
203 |
</div> |
|
|
204 |
|
|
|
205 |
<div class="mod box4"> |
|
|
206 |
<div class="hd"> |
|
|
207 |
<h4>More Profiler Resources:</h4> |
|
|
208 |
</div> |
|
|
209 |
<div class="bd"> |
|
|
210 |
<ul> |
|
|
211 |
<!-- <li><a href="http://developer.yahoo.com/yui/profiler/">User's Guide</a> (external)</li> --> |
|
|
212 |
<li><a href="../../api/module_profiler.html">API Documentation</a></li></ul> |
|
|
213 |
</div> |
|
|
214 |
</div> |
|
|
215 |
</div> |
|
|
216 |
</div> |
|
|
217 |
|
|
|
218 |
</div> |
|
|
219 |
</div> |
|
|
220 |
|
|
|
221 |
|
|
|
222 |
<div class="yui-b toc3" id="tocWrapper"> |
|
|
223 |
<!-- TABLE OF CONTENTS --> |
|
|
224 |
<div id="toc"> |
|
|
225 |
|
|
|
226 |
<ul> |
|
|
227 |
<li class="sect first">YUI 3 Resources</li><li class="item"><a title="YUI 3 -- Yahoo! User Interface (YUI) Library" href="http://developer.yahoo.com/yui/3/">YUI 3 Web Site</a></li><li class="item"><a title="Examples of every YUI utility and control in action" href="../../examples/">YUI 3 Examples</a></li><li class="item"><a title="Instantly searchable API documentation for the entire YUI library." href="../../api/">YUI 3 API Docs</a></li><li class="item"><a title="YUI 3 Dependency Configurator -- configure your custom YUI implementation" href="http://developer.yahoo.com/yui/3/configurator">YUI 3 Dependency Configurator</a></li><li class="item"><a title="The YUI 3 Forum on YUILibrary.com" href="http://yuilibrary.com/forum/viewforum.php?f=15">YUI 3 Forums (external)</a></li><li class="item"><a title="Found a bug or a missing feature? Let us know on YUILibrary.com." href="http://developer.yahoo.com/yui/articles/reportingbugs/">Bug Reports/Feature Requests</a></li><li class="item"><a title="YUI is free and open, offered under a BSD license." href="http://developer.yahoo.com/yui/license.html">YUI License</a></li><li class="item"><a title="Download and fork the YUI project on GitHub" href="http://github.com/yui">YUI on Github</a></li><li class="item"><a title="The Yahoo! User Interface Blog" href="http://yuiblog.com">YUI Blog (external)</a></li><li class="sect">YUI 3 Core - Examples</li><li class="item"><a title="YUI Global Object - Functional Examples" href="../../examples/yui/index.html">YUI Global Object</a></li><li class="item"><a title="Event - Functional Examples" href="../../examples/event/index.html">Event</a></li><li class="item"><a title="Node - Functional Examples" href="../../examples/node/index.html">Node</a></li><li class="sect">YUI 3 Component Infrastructure - Examples</li><li class="item"><a title="Attribute - Functional Examples" href="../../examples/attribute/index.html">Attribute</a></li><li class="item"><a title="Plugin - Functional Examples" href="../../examples/plugin/index.html">Plugin <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="Widget - Functional Examples" href="../../examples/widget/index.html">Widget <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="sect">YUI 3 Utilities - Examples</li><li class="item"><a title="Animation - Functional Examples" href="../../examples/anim/index.html">Animation</a></li><li class="item"><a title="AsyncQueue - Functional Examples" href="../../examples/async-queue/index.html">AsyncQueue</a></li><li class="item"><a title="Browser History - Functional Examples" href="../../examples/history/index.html">Browser History</a></li><li class="item"><a title="Cache - Functional Examples" href="../../examples/cache/index.html">Cache</a></li><li class="item"><a title="Cookie - Functional Examples" href="../../examples/cookie/index.html">Cookie</a></li><li class="item"><a title="DataSchema - Functional Examples" href="../../examples/dataschema/index.html">DataSchema <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="DataSource - Functional Examples" href="../../examples/datasource/index.html">DataSource <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="DataType - Functional Examples" href="../../examples/datatype/index.html">DataType <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="Drag & Drop - Functional Examples" href="../../examples/dd/index.html">Drag & Drop</a></li><li class="item"><a title="Get - Functional Examples" href="../../examples/get/index.html">Get</a></li><li class="item"><a title="ImageLoader - Functional Examples" href="../../examples/imageloader/index.html">ImageLoader</a></li><li class="item"><a title="IO - Functional Examples" href="../../examples/io/index.html">IO</a></li><li class="item"><a title="JSON (JavaScript Object Notation) - Functional Examples" href="../../examples/json/index.html">JSON</a></li><li class="item"><a title="Stylesheet - Functional Examples" href="../../examples/stylesheet/index.html">Stylesheet</a></li><li class="sect">YUI 3 Widgets - Examples</li><li class="item"><a title="Overlay - Functional Examples" href="../../examples/overlay/index.html">Overlay <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="Slider - Functional Examples" href="../../examples/slider/index.html">Slider <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="sect">YUI 3 Node Plugins - Examples</li><li class="item"><a title="FocusManager Node Plugin - Functional Examples" href="../../examples/node-focusmanager/index.html">FocusManager Node Plugin <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="MenuNav Node Plugin - Functional Examples" href="../../examples/node-menunav/index.html">MenuNav Node Plugin <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="sect">YUI 3 CSS - Examples</li><li class="item"><a title="YUI CSS Reset - Functional Examples" href="../../examples/cssreset/index.html">CSS Reset</a></li><li class="item"><a title="YUI Fonts - Functional Examples" href="../../examples/cssfonts/index.html">CSS Fonts</a></li><li class="item"><a title="YUI Base - Functional Examples" href="../../examples/cssbase/index.html">CSS Base</a></li><li class="sect">YUI 3 Developer Tools - Examples</li><li class="item"><a title="Console - Functional Examples" href="../../examples/console/index.html">Console <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="item"><a title="Console Filters Plugin- Functional Examples" href="../../examples/console-filters/index.html">Plugin.ConsoleFilters <img src='http://l.yimg.com/a/i/not/beta_1.gif'></a></li><li class="selected "><a title="Profiler - Functional Examples" href="../../examples/profiler/index.html">Profiler</a></li><li class="item"><a title="Test - Functional Examples" href="../../examples/test/index.html">Test</a></li><li class="sect">Other Useful YUI 3 Resources</li><li class="item"><a title="Answers to Frequently Asked Questions about the YUI Library" href="http://developer.yahoo.com/yui/articles/faq/">YUI FAQ (external)</a></li><li class="item"><a title="Yahoo!'s philosophy of Graded Browser Support" href="http://developer.yahoo.com/yui/articles/gbs/">Graded Browser Support (external)</a></li><li class="item"><a title="Videos and podcasts from the YUI Team and from the Yahoo! frontend engineering community." href="http://developer.yahoo.com/yui/theater/">YUI Theater (external)</a></li></ul> |
|
|
228 |
</div> |
|
|
229 |
</div> |
|
|
230 |
</div><!--closes bd--> |
|
|
231 |
|
|
|
232 |
<div id="ft"> |
|
|
233 |
<p class="first">Copyright © 2009 Yahoo! Inc. All rights reserved.</p> |
|
|
234 |
<p><a href="http://privacy.yahoo.com/privacy/us/devel/index.html">Privacy Policy</a> - |
|
|
235 |
<a href="http://docs.yahoo.com/info/terms/">Terms of Service</a> - |
|
|
236 |
<a href="http://docs.yahoo.com/info/copyright/copyright.html">Copyright Policy</a> - |
|
|
237 |
<a href="http://careers.yahoo.com/">Job Openings</a></p> |
|
|
238 |
</div> |
|
|
239 |
</div> |
|
|
240 |
<script language="javascript"> |
|
|
241 |
var yuiConfig = {base:"../../build/", timeout: 10000, filter:"debug", logInclude: {profiler:true, example:true}}; |
|
|
242 |
</script> |
|
|
243 |
<script src="../../assets/syntax.js"></script> |
|
|
244 |
<script src="../../assets/dpSyntaxHighlighter.js"></script> |
|
|
245 |
<script language="javascript"> |
|
|
246 |
dp.SyntaxHighlighter.HighlightAll('code'); |
|
|
247 |
</script> |
|
|
248 |
</body> |
|
|
249 |
</html> |