1- // Autogenerated by hob
1+ // Autogenerated by hob
22window . cls || ( window . cls = { } ) ;
33cls . Profiler || ( cls . Profiler = { } ) ;
44cls . Profiler [ "1.1" ] || ( cls . Profiler [ "1.1" ] = { } ) ;
55
66cls . Profiler [ "1.1" ] . Events = function ( arr )
77{
8- /**
8+ /**
99 * Represents the smallest `Interval` which is large enough to cover all the
1010 * `Intervals` of each individual `Event` in the list.
11- *
11+ *
1212 * Is not set if `eventList` is empty.
1313 */
1414 this . interval = arr [ 0 ] ? new cls . Profiler [ "1.1" ] . Interval ( arr [ 0 ] , this ) : null ;
15- /**
15+ /**
1616 * List of `Events`. The `Events` are ordered according to the start time of
1717 * their `Intervals` (increasing order).
1818 */
@@ -24,12 +24,12 @@ cls.Profiler["1.1"].Events = function(arr)
2424
2525cls . Profiler [ "1.1" ] . Interval = function ( arr )
2626{
27- /**
27+ /**
2828 * The start of the `Interval`. If not present, this is an left-open
2929 * `Interval` ([-inf, N]).
3030 */
3131 this . start = arr [ 0 ] ;
32- /**
32+ /**
3333 * The end of the `Interval`. If not present, this is an right-open
3434 * `Interval` ([N, +inf]).
3535 */
@@ -38,133 +38,133 @@ cls.Profiler["1.1"].Interval = function(arr)
3838
3939cls . Profiler [ "1.1" ] . Event = function ( arr )
4040{
41- /**
41+ /**
4242 * The type of `Event`. Some `Events` carry additional information relevant
4343 * to their type.
4444 */
4545 // cls.Profiler["1.1"].Event.EventType
4646 this . type = arr [ 0 ] ;
47- /**
47+ /**
4848 * The time spent on this task. (Self-time). This time takes place at some
4949 * (unknown) point in the `Interval`.
50- *
50+ *
5151 * Does not include `overhead`.
5252 */
5353 this . time = arr [ 1 ] ;
54- /**
54+ /**
5555 * Profiling overhead. This is the time spent doing things which would
5656 * normally not happen if we had not been profiling, e.g. storing the
5757 * selector text for CSS selector `Events`.
58- *
58+ *
5959 * The overhead takes place at some (unknown) point in the `Interval`.
6060 */
6161 this . overhead = arr [ 2 ] ;
62- /**
62+ /**
6363 * Number of hits on this `Event`.
6464 */
6565 this . hits = arr [ 3 ] ;
66- /**
66+ /**
6767 * The `Interval` in which the `Event` took place. An `Event` may consume time
6868 * across multiple time slices (e.g. thread evaluation) without requiring
6969 * *all* the time in that `Interval`.
70- *
70+ *
7171 * The `time` field contains the time actually spent working on the `Event`.
7272 * There is no exact start and end time for `Events` which are spread across
7373 * time slices, because the self-time spent is fragmented across the
7474 * `Interval`.
75- *
75+ *
7676 * We can therefore only know that the `time` spent on this `Event` happened
7777 * some time in this `Interval`, but not exactly where. (It would be
7878 * possible to expose each fragment of execution, of course, but the amount
7979 * of data required to represent this would be to large to handle).
80- *
80+ *
8181 * The start of the `Interval` represents the first time we started working
8282 * on this `Event`. The end of the `Interval` represents the last time we
8383 * were done working on this `Event`.
8484 */
8585 this . interval = arr [ 4 ] ? new cls . Profiler [ "1.1" ] . Interval ( arr [ 4 ] , this ) : null ;
86- /**
86+ /**
8787 * The non-zero ID of this `Event`.
8888 */
8989 this . eventID = arr [ 5 ] ;
90- /**
90+ /**
9191 * The parent `Event` ID, or not set if this is a top-level `Event`.
9292 */
9393 this . parentEventID = arr [ 6 ] ;
94- /**
94+ /**
9595 * The number of immediate children (not grandchildren) for this `Event`.
9696 */
9797 this . childCount = arr [ 7 ] ;
98- /**
98+ /**
9999 * Aggregated `time` for all children, including `time` for this `Event`.
100100 */
101101 this . aggregatedTime = arr [ 8 ] ;
102- /**
102+ /**
103103 * Aggregated `overhead` for all children, including `overhead` for this
104104 * `Event`.
105105 */
106106 this . aggregatedOverhead = arr [ 9 ] ;
107- /**
107+ /**
108108 * Additional information for `CSS_SELECTOR_MATCHING` `Events`.
109109 */
110110 this . cssSelectorMatching = arr [ 10 ] ? new cls . Profiler [ "1.1" ] . CssSelectorMatchingEvent ( arr [ 10 ] , this ) : null ;
111- /**
111+ /**
112112 * Additional information for `SCRIPT_THREAD_EVALUATION` `Events`.
113113 */
114114 this . scriptThreadEvaluation = arr [ 11 ] ? new cls . Profiler [ "1.1" ] . ScriptThreadEvaluationEvent ( arr [ 11 ] , this ) : null ;
115- /**
115+ /**
116116 * Additional information for `DOCUMENT_PARSING` `Events`.
117117 */
118118 this . documentParsing = arr [ 12 ] ? new cls . Profiler [ "1.1" ] . DocumentParsingEvent ( arr [ 12 ] , this ) : null ;
119- /**
119+ /**
120120 * Additional information for `CSS_PARSING` `Events`.
121121 */
122122 this . cssParsing = arr [ 13 ] ? new cls . Profiler [ "1.1" ] . CssParsingEvent ( arr [ 13 ] , this ) : null ;
123- /**
123+ /**
124124 * Additional information for `SCRIPT_COMPILATION` `Events`.
125125 */
126126 this . scriptCompilation = arr [ 14 ] ? new cls . Profiler [ "1.1" ] . ScriptCompilationEvent ( arr [ 14 ] , this ) : null ;
127- /**
127+ /**
128128 * Additional information for `PAINT` `Events`.
129129 */
130130 this . paint = arr [ 15 ] ? new cls . Profiler [ "1.1" ] . PaintEvent ( arr [ 15 ] , this ) : null ;
131131} ;
132132
133133cls . Profiler [ "1.1" ] . CssSelectorMatchingEvent = function ( arr )
134134{
135- /**
135+ /**
136136 * The selector text, e.g. "#foo .bar".
137137 */
138138 this . selector = arr [ 0 ] ;
139139} ;
140140
141141cls . Profiler [ "1.1" ] . ScriptThreadEvaluationEvent = function ( arr )
142142{
143- /**
143+ /**
144144 * What kind of thread the `Event` represents.
145145 */
146146 // cls.Profiler["1.1"].ScriptThreadEvaluationEvent.ScriptThreadType
147147 this . scriptThreadType = arr [ 0 ] ;
148- /**
148+ /**
149149 * If `scriptThreadType` is `EVENT`, this field will contain the event name,
150150 * e.g. 'load'.
151- *
151+ *
152152 * In all other cases, this field is not set.
153153 */
154154 this . eventName = arr [ 1 ] ;
155155} ;
156156
157157cls . Profiler [ "1.1" ] . DocumentParsingEvent = function ( arr )
158158{
159- /**
159+ /**
160160 * The URL of the document that was parsed.
161161 */
162162 this . url = arr [ 0 ] ;
163163} ;
164164
165165cls . Profiler [ "1.1" ] . CssParsingEvent = function ( arr )
166166{
167- /**
167+ /**
168168 * The URL of the stylesheet that was parsed. If the stylesheet is inlined
169169 * in another document, that document is used as the URL.
170170 */
@@ -173,12 +173,12 @@ cls.Profiler["1.1"].CssParsingEvent = function(arr)
173173
174174cls . Profiler [ "1.1" ] . ScriptCompilationEvent = function ( arr )
175175{
176- /**
176+ /**
177177 * Describes the origin of the script.
178178 */
179179 // cls.Profiler["1.1"].ScriptCompilationEvent.ScriptType
180180 this . scriptType = arr [ 0 ] ;
181- /**
181+ /**
182182 * The URL of the stylesheet that was parsed. If the stylesheet is inlined
183183 * in another document, that document is used as the URL.
184184 */
@@ -187,14 +187,14 @@ cls.Profiler["1.1"].ScriptCompilationEvent = function(arr)
187187
188188cls . Profiler [ "1.1" ] . PaintEvent = function ( arr )
189189{
190- /**
190+ /**
191191 * The `Area` that was painted, in document coordinates relative the upper
192192 * left corner of the view.
193193 */
194194 this . area = arr [ 0 ] ? new cls . Profiler [ "1.1" ] . Area ( arr [ 0 ] , this ) : null ;
195195} ;
196196
197- /**
197+ /**
198198 * Defines an `Area` by its top-left corner and width/height.
199199 */
200200cls . Profiler [ "1.1" ] . Area = function ( arr )
@@ -203,9 +203,9 @@ cls.Profiler["1.1"].Area = function(arr)
203203 this . y = arr [ 1 ] ;
204204 this . w = arr [ 2 ] ;
205205 this . h = arr [ 3 ] ;
206- /**
206+ /**
207207 * The scroll offsets of the view in which area is defined.
208- *
208+ *
209209 * @since 1.1
210210 */
211211 this . ox = arr [ 4 ] ;
0 commit comments