Comments (3)
Thanks -- I hadn't yet experimented with worker_threads.
Long term, I assume the goal for pprof-nodejs will be to have profiles which are collected outside of worker threads include information about worker threads, so I'm not extremely concerned that profiles cannot be collected within worker threads (except that it does make me think there will be some complications for collecting profiles which include information about worker threads).
Experimenting a bit here, though, the profiles collected right now when there's a worker thread are rather strange.
Heap Allocations, for example, seem to be attributed to call stacks somewhat randomly. The first time I profiled, heap allocations from within the worker were attributed to "keys"; the next time, they were attributed to "Lines":
heap-1.pb.gz
heap-2.pb.gz
The wall profile was more within expected behavior. It was 100% idle, since it only profiled the main thread.
wall.pb.gz
The script I used is attached:
index.js.txt
from pprof-nodejs.
At this point in time, I don't think this is a feature request that can be prioritized for pprof-nodejs.
Marking as closed (I think a fix here would likely require upstream changes)
from pprof-nodejs.
Same issue
from pprof-nodejs.
Related Issues (20)
- Cannot npm install [email protected] with node 12.16.1 HOT 1
- Action Required: Fix Renovate Configuration
- Error installing pprof with nodejs v14 HOT 2
- Add support for Node 17 and 18. Drop support for Node 10, 12 and 15. HOT 10
- Add support for Node 16
- Dependency Dashboard
- Receiving a 404 error on Apple M1
- Receiving a 404 error on Apple M1 HOT 2
- Remove feature "requiring from the command line"
- CVE-2023-36665 vunerablity in protobufjs >= 6.10.0, < 7.2.4 HOT 1
- Module did not self-register: Worker Threads HOT 2
- [node 20] Compilation error on nan HOT 9
- System test failing for Node 21 HOT 1
- How to test the sourcemapper?
- Stop suppressing warnings with -Wno-cast-function-type HOT 1
- Support Node 12 HOT 2
- Fix compilation warnings with Node 12. HOT 1
- Expose a profile to pprof CLI HOT 1
- Doesn't compile on windows HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pprof-nodejs.