You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to execute nodegrind from nodegrind XX.js, I have this error :
TypeError: Cannot read property 'functionName' of undefined
at convertProfNode (/usr/lib/node_modules/nodegrind/nodegrind.js:57:21)
at prof2cpuprofile (/usr/lib/node_modules/nodegrind/nodegrind.js:73:9)
at process.module.exports.startCPU (/usr/lib/node_modules/nodegrind/nodegrind.js:99:6)
at process.emit (events.js:95:17)
By looking at the structure of the returned object of profiler.stopProfiling('global'), topRoot doesn't exist. This is the structure of the object :
@cocoto: It would be nice to dynamically switch the behavior based on the node version, so that the latest would work with both 0.11 and 0.10. I did try a tiny bit in 5f2ca32, but I suspect that f359eca might be a problem for 0.10 as well.
Problem encoutered
When I try to execute nodegrind from
nodegrind XX.js
, I have this error :By looking at the structure of the returned object of
profiler.stopProfiling('global')
, topRoot doesn't exist. This is the structure of the object :The structure seems to be an hybrid between node v10.X and v11.X (as you previously patched), with
bottomRoot
instead oftopRoot
Informations
Node v0.10.33
ArchLinux x86_64 3.17.2-1-ARCH
nodegrind v0.2.0
v8-profiler v5.0.0
The text was updated successfully, but these errors were encountered: