Frequent FunctionCall events skew the performance profile. |
||
Issue descriptionChrome 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.
,
Dec 11
,
Dec 11
|
||
►
Sign in to add a comment |
||
Comment 1 by lushnikov@chromium.org
, Jul 11