grafana / pyroscope-nodejs

Pyroscope NodeJS integration
Apache License 2.0
27 stars 21 forks source link

What does `:(idle):0` represent in CPU profiles? #20

Closed ldx closed 9 months ago

ldx commented 2 years ago

I'm profiling a node application, and most of the CPU time is spent in this state. The process uses ~60% of one CPU core according to system metrics (this is in Kubernetes). I'm wondering what it means exactly?

image

kolesnikovae commented 9 months ago

We use V8's CPU profiler which is a wall time profiler. (idle) represents Node idle phase, which accounts for the off-CPU time