What do the “Not optimized” warnings in the Chrome Profiler mean?

前端 未结 5 1514
失恋的感觉
失恋的感觉 2021-01-30 16:20

When I use the Developer Tools in Chrome to collect JavaScript CPU Profiles, I am getting two mysterious warnings on functions:

  • Not optimized: optimized too many t
5条回答
  •  不思量自难忘°
    2021-01-30 16:29

    The first one is likely because the engine has optimised it, but then found the optimisation no good for some reason (maybe the return type varies over time, etc).

    Enabling the flags --trace-opt and --trace-deopt should help you pinpoint.

    My excuses if the links provided in the comments already pointed you there.

提交回复
热议问题