hyj1991 / v8-profiler-next

node bindings for the v8 profiler
MIT License
218 stars 21 forks source link

The idle usage statistics may be incorrect #66

Closed LvPeng990324 closed 11 months ago

LvPeng990324 commented 11 months ago

Versions

Problem Description

In my project, the CPU usage is often close to 100% recently. I want to use the v8-profiler-nex to help me locate the problem. But when I installed it in production environment to capture data on resources occupied by methods, during another time period when the CPU occupied 100%, the captured data actually showed that most of the CPU occupied was the (idle) function. I think this result is incorrect, but I am not sure. I would like to ask about this situation.

I can't figure out why (idle) takes up so much cpu.

img_v3_025m_a57acb63-fd8f-4bf9-8acc-df739b78dc9g