New issue
Advanced search Search tips

Issue 862479 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Frequent FunctionCall events skew the performance profile.

Project Member Reported by lushnikov@chromium.org, Jul 11

Issue description

Chrome Version       : 67.0.3396.99

What steps will reproduce the problem?
1. goto https://pptr.dev/#?product=Puppeteer&version=v1.5.0&show=api-class-page
2. Open DevTools -> Console.
3. Notice the "Generate API HTML: 464.10595703125ms" log entry there (timing might differ depending on the workstation). The entry is generated with a console.time/console.timeEnd pair.
4. Open performance panel, hit "start profiling and reload the page" button. Once the page loads, stop profiling
5. Notice the size of the console.time entry on the performance panel

Expected:
console.time measurement to be the same with and without tracing

Actual:
console.time measuremenet is 2x-3x slower with tracing then without it.


This seems to be related to a big amount of sub-millisecond function calls that is executed during DOM traversal with dom walker. As a result, tracing is spammed with trace events.

 
Cc: pfeldman@chromium.org
Labels: -Pri-1 Pri-2
Summary: Frequent FunctionCall events skew the performance profile. (was: DevTools: Performance panel is lying.)
Screenshot from 2018-12-11 13-48-57.png
129 KB View Download

Sign in to add a comment