Uh oh!
There was an error while loading. Please reload this page.
add --track-heap-objects - #2135
Conversation
ofrobots
commented
Jul 8, 2015
Does doc/iojs.1 also need to be modified? |
thefourtheye
commented
Jul 8, 2015
I am not able to understand why we need the whitespace changes. |
bmeck
commented
Jul 8, 2015
@thefourtheye it was to keep 2 spaces between the switch and the description and keeping all of the descriptions aligned |
bmeck
commented
Jul 8, 2015
@ofrobots i can but I saw that |
thefourtheye
commented
Jul 8, 2015
@bmeck Ah, I see what you are saying now. |
bmeck
commented
Jul 8, 2015
@thefourtheye correct |
There was a problem hiding this comment.
Shouldn't we explicitly set this to False, in the else part?
There was a problem hiding this comment.
none of the other switches work that way
There was a problem hiding this comment.
Does it even need to be exposed to JS land?
(I guess the same question applies to .traceSyncIO, /cc @trevnorris.)
There was a problem hiding this comment.
Yup. You're right. I can't think of a useful case to expose either of them to JS.
There was a problem hiding this comment.
Good to know. @bmeck Can you remove the .trackHeapObjects property (and .traceSyncIO in a separate commit if you want)?
bmeck
commented
Jul 9, 2015
@bnoordhuis removed trackHeapObjects from process, separate PR for traceSyncIO #2143 |
bnoordhuis
commented
Jul 9, 2015
LGTM |
trevnorris
commented
Jul 9, 2015
trevnorris
commented
Jul 9, 2015
LGTM |
thefourtheye
commented
Jul 9, 2015
Do we need a test for this? |
bmeck
commented
Jul 9, 2015
@thefourtheye node itself does not include a way to dump heap snapshots, we could write one up but it would be akin to including |
- This makes v8 add .trace_function_info to the serialized form of snapshots from v8::HeapSnapshot::Serialize - .trace_funciton_info combined with .trace_node in snapshots tells the JS location that allocated a specific object
- This makes v8 add .trace_function_info to the serialized form of snapshots from v8::HeapSnapshot::Serialize - .trace_funciton_info combined with .trace_node in snapshots tells the JS location that allocated a specific object PR-URL: #2135 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
trevnorris
commented
Jul 10, 2015
Squashed and landed in cf14a24. |
Fishrock123
commented
Jul 12, 2015
Tagged as |
Notable changes * src: Added a new `--track-heap-objects` flag to track heap object allocations for heap snapshots (Bradley Meck) nodejs#2135. * readline: Fixed a freeze that affected the repl if the keypress event handler threw (Alex Kocharin) nodejs#2107. * npm: Upgraded to v2.13.0, release notes can be found in https://github.com/npm/npm/releases/tag/v2.13.0 (Forrest L Norvell) nodejs#2152. PR-URL: nodejs#2189
Right now we do not have a way to start iojs with heap object tracking.
Calling
v8::Profiler::StartTrackingHeapObjectsafter node has started up will not include the reference info for objects in node core. This can be seen by runningnode-heapdumpwith the flag turned on. This information is useful for debugging tools and would be visible in Chrome DevTools in the same way that "Record heap allocation stack traces" functions from the DevTools settings pane.