Profiling Data contains no line ticks (line and timing information)

82 views
Skip to first unread message

Jim Acquavella

unread,
Mar 29, 2016, 2:39:30 PM3/29/16
to v8-users
Every single CpuProfileNode returns a zero when I call GetHitLineCount().  I was able to look at the Chromium source code and figure out how to turn the binary data to a .cpuprofile file I can load and visualize in Chrome.  I've attached an example, but as you can see, there's no timing or hit count data.

The profiling data does have the source origin and a line number associated with the sample.  Also, debugging works via node-inspector.  Any ideas while line and timing data isn't being collected?

-Jim
Ch Javascript Profile9.cpuprofile

Jochen Eisinger

unread,
Apr 1, 2016, 7:31:35 AM4/1/16
to v8-users
Without further information it's difficult to tell what problem you're running into. One thing I could imagine is that you didn't have the profiler engaged while the code was compiled. In this case, you won't get per line hit counts.

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jim Acquavella

unread,
Apr 4, 2016, 10:56:35 AM4/4/16
to v8-users
Yes, that was indeed the issue.  I didn't realize the profiler had to be active while the source code is compiled.  All is working now, thanks!

You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/a-s6caPnwpo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages