Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / profiler / cpu-profiler-flame-chart-overview.html
1 <html>
2 <head>
3   <script src="../../http/tests/inspector/inspector-test.js"></script>
4   <script src="profiler-test.js"></script>
5 <script>
6
7 function test()
8 {
9     var profileAndExpectations = {
10         _profile: {
11             "head": {
12               "functionName": "(root)",
13               "scriptId": "0",
14               "url": "",
15               "lineNumber": 0,
16               "columnNumber": 0,
17               "hitCount": 0,
18               "callUID": 1017737175,
19               "children": [
20                 {
21                   "functionName": "(program)",
22                   "scriptId": "0",
23                   "url": "",
24                   "lineNumber": 0,
25                   "columnNumber": 0,
26                   "hitCount": 8,
27                   "callUID": 3228965662,
28                   "children": [
29                   ],
30                   "deoptReason": "",
31                   "id": 2
32                 },
33                 {
34                   "functionName": "goog.ui.HoverCard.maybeShow",
35                   "scriptId": "552",
36                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/hovercard.js",
37                   "lineNumber": 406,
38                   "columnNumber": 49,
39                   "hitCount": 0,
40                   "callUID": 2979117654,
41                   "children": [
42                     {
43                       "functionName": "goog.ui.Tooltip.maybeShow",
44                       "scriptId": "550",
45                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/tooltip.js",
46                       "lineNumber": 543,
47                       "columnNumber": 47,
48                       "hitCount": 0,
49                       "callUID": 4025562866,
50                       "children": [
51                         {
52                           "functionName": "goog.ui.Tooltip.positionAndShow_",
53                           "scriptId": "550",
54                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/tooltip.js",
55                           "lineNumber": 610,
56                           "columnNumber": 54,
57                           "hitCount": 0,
58                           "callUID": 3670406757,
59                           "children": [
60                             {
61                               "functionName": "goog.ui.PopupBase.setVisible",
62                               "scriptId": "548",
63                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
64                               "lineNumber": 448,
65                               "columnNumber": 50,
66                               "hitCount": 0,
67                               "callUID": 1027332454,
68                               "children": [
69                                 {
70                                   "functionName": "goog.ui.PopupBase.show_",
71                                   "scriptId": "548",
72                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
73                                   "lineNumber": 472,
74                                   "columnNumber": 45,
75                                   "hitCount": 0,
76                                   "callUID": 1243771321,
77                                   "children": [
78                                     {
79                                       "functionName": "goog.ui.Tooltip.onBeforeShow",
80                                       "scriptId": "550",
81                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/tooltip.js",
82                                       "lineNumber": 462,
83                                       "columnNumber": 50,
84                                       "hitCount": 0,
85                                       "callUID": 730826276,
86                                       "children": [
87                                         {
88                                           "functionName": "goog.ui.PopupBase.onBeforeShow",
89                                           "scriptId": "548",
90                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
91                                           "lineNumber": 682,
92                                           "columnNumber": 52,
93                                           "hitCount": 0,
94                                           "callUID": 3156514871,
95                                           "children": [
96                                             {
97                                               "functionName": "goog.events.EventTarget.dispatchEvent",
98                                               "scriptId": "537",
99                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
100                                               "lineNumber": 185,
101                                               "columnNumber": 59,
102                                               "hitCount": 0,
103                                               "callUID": 175902988,
104                                               "children": [
105                                                 {
106                                                   "functionName": "goog.events.EventTarget.dispatchEventInternal_",
107                                                   "scriptId": "537",
108                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
109                                                   "lineNumber": 353,
110                                                   "columnNumber": 58,
111                                                   "hitCount": 0,
112                                                   "callUID": 1027992353,
113                                                   "children": [
114                                                     {
115                                                       "functionName": "goog.events.EventTarget.fireListeners",
116                                                       "scriptId": "537",
117                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
118                                                       "lineNumber": 265,
119                                                       "columnNumber": 59,
120                                                       "hitCount": 0,
121                                                       "callUID": 3839384186,
122                                                       "children": [
123                                                         {
124                                                           "functionName": "logEvent",
125                                                           "scriptId": "554",
126                                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/demos\/hovercard.html",
127                                                           "lineNumber": 120,
128                                                           "columnNumber": 24,
129                                                           "hitCount": 0,
130                                                           "callUID": 3948503588,
131                                                           "children": [
132                                                             {
133                                                               "functionName": "goog.log.info",
134                                                               "scriptId": "518",
135                                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/log\/log.js",
136                                                               "lineNumber": 173,
137                                                               "columnNumber": 25,
138                                                               "hitCount": 0,
139                                                               "callUID": 2719274562,
140                                                               "children": [
141                                                                 {
142                                                                   "functionName": "goog.debug.DivConsole.addLogRecord",
143                                                                   "scriptId": "517",
144                                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/debug\/divconsole.js",
145                                                                   "lineNumber": 92,
146                                                                   "columnNumber": 56,
147                                                                   "hitCount": 0,
148                                                                   "callUID": 3436172789,
149                                                                   "children": [
150                                                                     {
151                                                                       "functionName": "appendChild",
152                                                                       "scriptId": "0",
153                                                                       "url": "",
154                                                                       "lineNumber": 0,
155                                                                       "columnNumber": 0,
156                                                                       "hitCount": 1,
157                                                                       "callUID": 2375967960,
158                                                                       "children": [
159                                                                       ],
160                                                                       "deoptReason": "",
161                                                                       "id": 16
162                                                                     }
163                                                                   ],
164                                                                   "deoptReason": "no reason",
165                                                                   "id": 15
166                                                                 }
167                                                               ],
168                                                               "deoptReason": "no reason",
169                                                               "id": 14
170                                                             }
171                                                           ],
172                                                           "deoptReason": "no reason",
173                                                           "id": 13
174                                                         }
175                                                       ],
176                                                       "deoptReason": "no reason",
177                                                       "id": 12
178                                                     }
179                                                   ],
180                                                   "deoptReason": "no reason",
181                                                   "id": 11
182                                                 }
183                                               ],
184                                               "deoptReason": "no reason",
185                                               "id": 10
186                                             }
187                                           ],
188                                           "deoptReason": "no reason",
189                                           "id": 9
190                                         }
191                                       ],
192                                       "deoptReason": "no reason",
193                                       "id": 8
194                                     },
195                                     {
196                                       "functionName": "goog.ui.Popup.reposition",
197                                       "scriptId": "549",
198                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popup.js",
199                                       "lineNumber": 199,
200                                       "columnNumber": 46,
201                                       "hitCount": 0,
202                                       "callUID": 994036427,
203                                       "children": [
204                                         {
205                                           "functionName": "goog.positioning.AnchoredPosition.reposition",
206                                           "scriptId": "522",
207                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/positioning\/anchoredposition.js",
208                                           "lineNumber": 83,
209                                           "columnNumber": 66,
210                                           "hitCount": 0,
211                                           "callUID": 3611579388,
212                                           "children": [
213                                             {
214                                               "functionName": "goog.positioning.positionAtAnchor",
215                                               "scriptId": "520",
216                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/positioning\/positioning.js",
217                                               "lineNumber": 196,
218                                               "columnNumber": 45,
219                                               "hitCount": 0,
220                                               "callUID": 2475480533,
221                                               "children": [
222                                                 {
223                                                   "functionName": "goog.positioning.getOffsetParentPageOffset",
224                                                   "scriptId": "520",
225                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/positioning\/positioning.js",
226                                                   "lineNumber": 278,
227                                                   "columnNumber": 54,
228                                                   "hitCount": 0,
229                                                   "callUID": 726686371,
230                                                   "children": [
231                                                     {
232                                                       "functionName": "get offsetParent",
233                                                       "scriptId": "0",
234                                                       "url": "",
235                                                       "lineNumber": 0,
236                                                       "columnNumber": 0,
237                                                       "hitCount": 1,
238                                                       "callUID": 165569179,
239                                                       "children": [
240                                                       ],
241                                                       "deoptReason": "",
242                                                       "id": 21
243                                                     }
244                                                   ],
245                                                   "deoptReason": "no reason",
246                                                   "id": 20
247                                                 },
248                                                 {
249                                                   "functionName": "goog.positioning.getVisiblePart_",
250                                                   "scriptId": "520",
251                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/positioning\/positioning.js",
252                                                   "lineNumber": 316,
253                                                   "columnNumber": 44,
254                                                   "hitCount": 0,
255                                                   "callUID": 832563978,
256                                                   "children": [
257                                                     {
258                                                       "functionName": "goog.style.getBounds",
259                                                       "scriptId": "516",
260                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/style\/style.js",
261                                                       "lineNumber": 1129,
262                                                       "columnNumber": 32,
263                                                       "hitCount": 0,
264                                                       "callUID": 1735066671,
265                                                       "children": [
266                                                         {
267                                                           "functionName": "goog.style.getPageOffset",
268                                                           "scriptId": "516",
269                                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/style\/style.js",
270                                                           "lineNumber": 651,
271                                                           "columnNumber": 36,
272                                                           "hitCount": 0,
273                                                           "callUID": 3913614204,
274                                                           "children": [
275                                                             {
276                                                               "functionName": "goog.style.getStyle_",
277                                                               "scriptId": "516",
278                                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/style\/style.js",
279                                                               "lineNumber": 219,
280                                                               "columnNumber": 32,
281                                                               "hitCount": 0,
282                                                               "callUID": 1778778665,
283                                                               "children": [
284                                                                 {
285                                                                   "functionName": "get ownerDocument",
286                                                                   "scriptId": "0",
287                                                                   "url": "",
288                                                                   "lineNumber": 0,
289                                                                   "columnNumber": 0,
290                                                                   "hitCount": 1,
291                                                                   "callUID": 2871300201,
292                                                                   "children": [
293                                                                   ],
294                                                                   "deoptReason": "",
295                                                                   "id": 26
296                                                                 }
297                                                               ],
298                                                               "deoptReason": "no reason",
299                                                               "id": 25
300                                                             }
301                                                           ],
302                                                           "deoptReason": "no reason",
303                                                           "id": 24
304                                                         }
305                                                       ],
306                                                       "deoptReason": "no reason",
307                                                       "id": 23
308                                                     }
309                                                   ],
310                                                   "deoptReason": "no reason",
311                                                   "id": 22
312                                                 }
313                                               ],
314                                               "deoptReason": "no reason",
315                                               "id": 19
316                                             }
317                                           ],
318                                           "deoptReason": "no reason",
319                                           "id": 18
320                                         }
321                                       ],
322                                       "deoptReason": "no reason",
323                                       "id": 17
324                                     },
325                                     {
326                                       "functionName": "goog.ui.AdvancedTooltip.onShow_",
327                                       "scriptId": "551",
328                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/advancedtooltip.js",
329                                       "lineNumber": 178,
330                                       "columnNumber": 53,
331                                       "hitCount": 0,
332                                       "callUID": 1438523729,
333                                       "children": [
334                                         {
335                                           "functionName": "goog.ui.PopupBase.onShow_",
336                                           "scriptId": "548",
337                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
338                                           "lineNumber": 693,
339                                           "columnNumber": 47,
340                                           "hitCount": 0,
341                                           "callUID": 3641174553,
342                                           "children": [
343                                             {
344                                               "functionName": "goog.events.EventTarget.dispatchEvent",
345                                               "scriptId": "537",
346                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
347                                               "lineNumber": 185,
348                                               "columnNumber": 59,
349                                               "hitCount": 0,
350                                               "callUID": 175902988,
351                                               "children": [
352                                                 {
353                                                   "functionName": "goog.events.EventTarget.dispatchEventInternal_",
354                                                   "scriptId": "537",
355                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
356                                                   "lineNumber": 353,
357                                                   "columnNumber": 58,
358                                                   "hitCount": 0,
359                                                   "callUID": 1027992353,
360                                                   "children": [
361                                                     {
362                                                       "functionName": "goog.events.EventTarget.fireListeners",
363                                                       "scriptId": "537",
364                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
365                                                       "lineNumber": 265,
366                                                       "columnNumber": 59,
367                                                       "hitCount": 0,
368                                                       "callUID": 3839384186,
369                                                       "children": [
370                                                         {
371                                                           "functionName": "logEvent",
372                                                           "scriptId": "554",
373                                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/demos\/hovercard.html",
374                                                           "lineNumber": 120,
375                                                           "columnNumber": 24,
376                                                           "hitCount": 0,
377                                                           "callUID": 3948503588,
378                                                           "children": [
379                                                             {
380                                                               "functionName": "goog.log.info",
381                                                               "scriptId": "518",
382                                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/log\/log.js",
383                                                               "lineNumber": 173,
384                                                               "columnNumber": 25,
385                                                               "hitCount": 0,
386                                                               "callUID": 2719274562,
387                                                               "children": [
388                                                                 {
389                                                                   "functionName": "goog.debug.DivConsole.addLogRecord",
390                                                                   "scriptId": "517",
391                                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/debug\/divconsole.js",
392                                                                   "lineNumber": 92,
393                                                                   "columnNumber": 56,
394                                                                   "hitCount": 0,
395                                                                   "callUID": 3436172789,
396                                                                   "children": [
397                                                                     {
398                                                                       "functionName": "get scrollHeight",
399                                                                       "scriptId": "0",
400                                                                       "url": "",
401                                                                       "lineNumber": 0,
402                                                                       "columnNumber": 0,
403                                                                       "hitCount": 1,
404                                                                       "callUID": 1630838451,
405                                                                       "children": [
406                                                                       ],
407                                                                       "deoptReason": "",
408                                                                       "id": 35
409                                                                     },
410                                                                     {
411                                                                       "functionName": "appendChild",
412                                                                       "scriptId": "0",
413                                                                       "url": "",
414                                                                       "lineNumber": 0,
415                                                                       "columnNumber": 0,
416                                                                       "hitCount": 1,
417                                                                       "callUID": 2375967960,
418                                                                       "children": [
419                                                                       ],
420                                                                       "deoptReason": "",
421                                                                       "id": 36
422                                                                     }
423                                                                   ],
424                                                                   "deoptReason": "no reason",
425                                                                   "id": 34
426                                                                 }
427                                                               ],
428                                                               "deoptReason": "no reason",
429                                                               "id": 33
430                                                             }
431                                                           ],
432                                                           "deoptReason": "no reason",
433                                                           "id": 32
434                                                         }
435                                                       ],
436                                                       "deoptReason": "no reason",
437                                                       "id": 31
438                                                     }
439                                                   ],
440                                                   "deoptReason": "no reason",
441                                                   "id": 30
442                                                 }
443                                               ],
444                                               "deoptReason": "no reason",
445                                               "id": 29
446                                             }
447                                           ],
448                                           "deoptReason": "no reason",
449                                           "id": 28
450                                         }
451                                       ],
452                                       "deoptReason": "no reason",
453                                       "id": 27
454                                     }
455                                   ],
456                                   "deoptReason": "TryCatchStatement",
457                                   "id": 7
458                                 }
459                               ],
460                               "deoptReason": "no reason",
461                               "id": 6
462                             }
463                           ],
464                           "deoptReason": "no reason",
465                           "id": 5
466                         }
467                       ],
468                       "deoptReason": "no reason",
469                       "id": 4
470                     }
471                   ],
472                   "deoptReason": "no reason",
473                   "id": 3
474                 },
475                 {
476                   "functionName": "(idle)",
477                   "scriptId": "0",
478                   "url": "",
479                   "lineNumber": 0,
480                   "columnNumber": 0,
481                   "hitCount": 60,
482                   "callUID": 316851070,
483                   "children": [
484                   ],
485                   "deoptReason": "",
486                   "id": 37
487                 },
488                 {
489                   "functionName": "goog.ui.AdvancedTooltip.maybeHide",
490                   "scriptId": "551",
491                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/advancedtooltip.js",
492                   "lineNumber": 272,
493                   "columnNumber": 55,
494                   "hitCount": 0,
495                   "callUID": 762635884,
496                   "children": [
497                     {
498                       "functionName": "goog.ui.PopupBase.setVisible",
499                       "scriptId": "548",
500                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
501                       "lineNumber": 448,
502                       "columnNumber": 50,
503                       "hitCount": 0,
504                       "callUID": 1027332454,
505                       "children": [
506                         {
507                           "functionName": "goog.ui.PopupBase.hide_",
508                           "scriptId": "548",
509                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
510                           "lineNumber": 590,
511                           "columnNumber": 45,
512                           "hitCount": 0,
513                           "callUID": 1192193890,
514                           "children": [
515                             {
516                               "functionName": "goog.ui.PopupBase.onBeforeHide_",
517                               "scriptId": "548",
518                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
519                               "lineNumber": 708,
520                               "columnNumber": 53,
521                               "hitCount": 0,
522                               "callUID": 3604239577,
523                               "children": [
524                                 {
525                                   "functionName": "goog.events.EventTarget.dispatchEvent",
526                                   "scriptId": "537",
527                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
528                                   "lineNumber": 185,
529                                   "columnNumber": 59,
530                                   "hitCount": 0,
531                                   "callUID": 175902988,
532                                   "children": [
533                                     {
534                                       "functionName": "goog.events.EventTarget.dispatchEventInternal_",
535                                       "scriptId": "537",
536                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
537                                       "lineNumber": 353,
538                                       "columnNumber": 58,
539                                       "hitCount": 0,
540                                       "callUID": 1027992353,
541                                       "children": [
542                                         {
543                                           "functionName": "goog.events.EventTarget.fireListeners",
544                                           "scriptId": "537",
545                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
546                                           "lineNumber": 265,
547                                           "columnNumber": 59,
548                                           "hitCount": 0,
549                                           "callUID": 3839384186,
550                                           "children": [
551                                             {
552                                               "functionName": "logEvent",
553                                               "scriptId": "554",
554                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/demos\/hovercard.html",
555                                               "lineNumber": 120,
556                                               "columnNumber": 24,
557                                               "hitCount": 0,
558                                               "callUID": 3948503588,
559                                               "children": [
560                                                 {
561                                                   "functionName": "goog.log.info",
562                                                   "scriptId": "518",
563                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/log\/log.js",
564                                                   "lineNumber": 173,
565                                                   "columnNumber": 25,
566                                                   "hitCount": 0,
567                                                   "callUID": 2719274562,
568                                                   "children": [
569                                                     {
570                                                       "functionName": "goog.debug.DivConsole.addLogRecord",
571                                                       "scriptId": "517",
572                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/debug\/divconsole.js",
573                                                       "lineNumber": 92,
574                                                       "columnNumber": 56,
575                                                       "hitCount": 0,
576                                                       "callUID": 3436172789,
577                                                       "children": [
578                                                         {
579                                                           "functionName": "set innerHTML",
580                                                           "scriptId": "0",
581                                                           "url": "",
582                                                           "lineNumber": 0,
583                                                           "columnNumber": 0,
584                                                           "hitCount": 1,
585                                                           "callUID": 707509894,
586                                                           "children": [
587                                                           ],
588                                                           "deoptReason": "",
589                                                           "id": 48
590                                                         }
591                                                       ],
592                                                       "deoptReason": "no reason",
593                                                       "id": 47
594                                                     }
595                                                   ],
596                                                   "deoptReason": "no reason",
597                                                   "id": 46
598                                                 }
599                                               ],
600                                               "deoptReason": "no reason",
601                                               "id": 45
602                                             }
603                                           ],
604                                           "deoptReason": "no reason",
605                                           "id": 44
606                                         }
607                                       ],
608                                       "deoptReason": "no reason",
609                                       "id": 43
610                                     }
611                                   ],
612                                   "deoptReason": "no reason",
613                                   "id": 42
614                                 }
615                               ],
616                               "deoptReason": "no reason",
617                               "id": 41
618                             },
619                             {
620                               "functionName": "goog.ui.PopupBase.continueHidingPopup_",
621                               "scriptId": "548",
622                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
623                               "lineNumber": 627,
624                               "columnNumber": 60,
625                               "hitCount": 0,
626                               "callUID": 2093833058,
627                               "children": [
628                                 {
629                                   "functionName": "goog.ui.HoverCard.onHide_",
630                                   "scriptId": "552",
631                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/hovercard.js",
632                                   "lineNumber": 347,
633                                   "columnNumber": 47,
634                                   "hitCount": 0,
635                                   "callUID": 654814745,
636                                   "children": [
637                                     {
638                                       "functionName": "goog.ui.AdvancedTooltip.onHide_",
639                                       "scriptId": "551",
640                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/advancedtooltip.js",
641                                       "lineNumber": 199,
642                                       "columnNumber": 53,
643                                       "hitCount": 0,
644                                       "callUID": 1821323492,
645                                       "children": [
646                                         {
647                                           "functionName": "goog.events.unlisten",
648                                           "scriptId": "535",
649                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/events.js",
650                                           "lineNumber": 374,
651                                           "columnNumber": 32,
652                                           "hitCount": 2,
653                                           "callUID": 250969654,
654                                           "children": [
655                                           ],
656                                           "deoptReason": "no reason",
657                                           "id": 52
658                                         },
659                                         {
660                                           "functionName": "goog.ui.Tooltip.onHide_",
661                                           "scriptId": "550",
662                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/tooltip.js",
663                                           "lineNumber": 502,
664                                           "columnNumber": 45,
665                                           "hitCount": 0,
666                                           "callUID": 985322188,
667                                           "children": [
668                                             {
669                                               "functionName": "goog.ui.PopupBase.onHide_",
670                                               "scriptId": "548",
671                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/ui\/popupbase.js",
672                                               "lineNumber": 723,
673                                               "columnNumber": 47,
674                                               "hitCount": 0,
675                                               "callUID": 4290498223,
676                                               "children": [
677                                                 {
678                                                   "functionName": "goog.events.EventTarget.dispatchEvent",
679                                                   "scriptId": "537",
680                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
681                                                   "lineNumber": 185,
682                                                   "columnNumber": 59,
683                                                   "hitCount": 0,
684                                                   "callUID": 175902988,
685                                                   "children": [
686                                                     {
687                                                       "functionName": "goog.events.EventTarget.dispatchEventInternal_",
688                                                       "scriptId": "537",
689                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
690                                                       "lineNumber": 353,
691                                                       "columnNumber": 58,
692                                                       "hitCount": 0,
693                                                       "callUID": 1027992353,
694                                                       "children": [
695                                                         {
696                                                           "functionName": "goog.events.EventTarget.fireListeners",
697                                                           "scriptId": "537",
698                                                           "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/events\/eventtarget.js",
699                                                           "lineNumber": 265,
700                                                           "columnNumber": 59,
701                                                           "hitCount": 0,
702                                                           "callUID": 3839384186,
703                                                           "children": [
704                                                             {
705                                                               "functionName": "logEvent",
706                                                               "scriptId": "554",
707                                                               "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/demos\/hovercard.html",
708                                                               "lineNumber": 120,
709                                                               "columnNumber": 24,
710                                                               "hitCount": 0,
711                                                               "callUID": 3948503588,
712                                                               "children": [
713                                                                 {
714                                                                   "functionName": "goog.log.info",
715                                                                   "scriptId": "518",
716                                                                   "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/log\/log.js",
717                                                                   "lineNumber": 173,
718                                                                   "columnNumber": 25,
719                                                                   "hitCount": 0,
720                                                                   "callUID": 2719274562,
721                                                                   "children": [
722                                                                     {
723                                                                       "functionName": "goog.debug.DivConsole.addLogRecord",
724                                                                       "scriptId": "517",
725                                                                       "url": "http:\/\/closure-library.googlecode.com\/git\/closure\/goog\/debug\/divconsole.js",
726                                                                       "lineNumber": 92,
727                                                                       "columnNumber": 56,
728                                                                       "hitCount": 0,
729                                                                       "callUID": 3436172789,
730                                                                       "children": [
731                                                                         {
732                                                                           "functionName": "appendChild",
733                                                                           "scriptId": "0",
734                                                                           "url": "",
735                                                                           "lineNumber": 0,
736                                                                           "columnNumber": 0,
737                                                                           "hitCount": 1,
738                                                                           "callUID": 2375967960,
739                                                                           "children": [
740                                                                           ],
741                                                                           "deoptReason": "",
742                                                                           "id": 61
743                                                                         }
744                                                                       ],
745                                                                       "deoptReason": "no reason",
746                                                                       "id": 60
747                                                                     }
748                                                                   ],
749                                                                   "deoptReason": "no reason",
750                                                                   "id": 59
751                                                                 }
752                                                               ],
753                                                               "deoptReason": "no reason",
754                                                               "id": 58
755                                                             }
756                                                           ],
757                                                           "deoptReason": "no reason",
758                                                           "id": 57
759                                                         }
760                                                       ],
761                                                       "deoptReason": "no reason",
762                                                       "id": 56
763                                                     }
764                                                   ],
765                                                   "deoptReason": "no reason",
766                                                   "id": 55
767                                                 }
768                                               ],
769                                               "deoptReason": "no reason",
770                                               "id": 54
771                                             }
772                                           ],
773                                           "deoptReason": "no reason",
774                                           "id": 53
775                                         }
776                                       ],
777                                       "deoptReason": "no reason",
778                                       "id": 51
779                                     }
780                                   ],
781                                   "deoptReason": "no reason",
782                                   "id": 50
783                                 }
784                               ],
785                               "deoptReason": "no reason",
786                               "id": 49
787                             }
788                           ],
789                           "deoptReason": "no reason",
790                           "id": 40
791                         }
792                       ],
793                       "deoptReason": "no reason",
794                       "id": 39
795                     }
796                   ],
797                   "deoptReason": "no reason",
798                   "id": 38
799                 }
800               ],
801               "deoptReason": "",
802               "id": 1
803             },
804             "startTime": 1384977392.3568,
805             "endTime": 1384977392.5345,
806             "samples": [2,16,21,26,35,36,37,2,2,2,2,2,2,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,48,52,52,61,2,37,37,37,37,37,37,37]
807           }
808     };
809     var profile = profileAndExpectations._profile;
810     var startTime = profile.startTime * 1000;
811     var endTime = profile.endTime * 1000;
812     var samplingInterval = (endTime - startTime) / (profile.samples.length - 1);
813     profile.timestamps = [];
814     for (var i = 0; i < profile.samples.length; ++i)
815         profile.timestamps.push(startTime + i * samplingInterval);
816     profileAndExpectations.target = function() {};
817     profileAndExpectations.weakTarget = function() { return new WeakReference(null);};
818     var cpuProfileView = new WebInspector.CPUProfileView(profileAndExpectations);
819     cpuProfileView.viewSelectComboBox.setSelectedIndex(0);
820     cpuProfileView._changeView();
821     var overviewPane = cpuProfileView._flameChart._overviewPane;
822     console.log(Object.values(overviewPane._calculateDrawData(16)));
823     console.log(Object.values(overviewPane._calculateDrawData(8)));
824     console.log(Object.values(overviewPane._calculateDrawData(4)));
825     console.log(Object.values(overviewPane._calculateDrawData(2)));
826     console.log(Object.values(overviewPane._calculateDrawData(1)));
827     InspectorTest.completeTest();
828 }
829
830 </script>
831 </head>
832 <body onload="runTest()">
833 <p>
834 Tests Overview pane calculation in FlameChart for different width = 2^n with n in range 4 - 0.
835
836 </p>
837 </body>
838 </html>