最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - What is the Profiling Overhead in Performance - Stack Overflow

programmeradmin2浏览0评论

I've seen that there is something called Profilling Overhead in Performance Timing. But currently I cannot find what does it mean. And What will effect the time of it. Is there anyone can help about it screenshot

Refresh for several times but every time has it.

I've seen that there is something called Profilling Overhead in Performance Timing. But currently I cannot find what does it mean. And What will effect the time of it. Is there anyone can help about it screenshot

Refresh for several times but every time has it.

Share Improve this question edited Jul 5, 2023 at 11:09 Atom asked Jul 5, 2023 at 11:08 AtomAtom 911 silver badge4 bronze badges 1
  • 3 When running the profiler to measure the performance of your page the profiler itself takes a lot of CPU time. The Profiling Overhead is the extra load your page sees due to the fact that you're trying to measure performance, not because of anything your code does. – slebetman Commented Jul 5, 2023 at 11:11
Add a ment  | 

1 Answer 1

Reset to default 16

One of the major pieces of the Chrome DevTools Performance panel's instrumentation is the V8 Sampling Profiler, which provides the data about what JavaScript callstacks are active. That's exactly what builds the JavaScript parts of the flame chart.

The V8 Profiler has some startup cost. It's essentially gathering data about all the current scripts on the page. This startup cost is what's labeled as "Profiling Overhead".

That cost won't exist unless you're profiling, so it doesn't affect real users. :)

Source: I work on DevTools and added this particular event to the UI.

发布评论

评论列表(0)

  1. 暂无评论