Skip to content

Profiling using --prof inside worker_threads does not work #24016

Closed
@slonka

Description

@slonka
  • Version: 11.0.0
  • Platform: macos
  • Subsystem: worker_threads

Generating flame graphs with worker_thread produces isolate files that do not contain useful information.

Using my example repo https://github.com/slonka/nodejs-prof-worker-threads-not-working i generated the following flame graphs for:

Single threaded version:
image

And worker threads version:
image

image

What makes me think that this is a bug inside node and not 0x is that isolate files and processed files (generated by running node --prof-process) contain pretty much the same info that is on the flame graphs. I used flame graphs because they are easier to read for me.

Metadata

Metadata

Assignees

Labels

confirmed-bugIssues with confirmed bugs.workerIssues and PRs related to Worker support.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions