Re: [v8-users] profiling JavaScript program

35 views
Skip to first unread message

Ben Noordhuis

unread,
Oct 1, 2015, 5:50:26 AM10/1/15
to v8-u...@googlegroups.com
On Wed, Sep 30, 2015 at 3:20 PM, dmonji <monika...@gmail.com> wrote:
> I want to see how much percentage of total execution time is spent on
> introducing inline cache in the program.
> I am aware of v8 profiling tools which gives output similar to
> http://i.stack.imgur.com/MAKoU.png. What does the
> percentage in brackets refer to? Does IC Miss(24.3%) means that 24.3% of the
> total execution time is spent on inline caching?

No, just that 24.3% of internal timer events (the ones you enable with
--log_internal_timer_events) was spent inside IC misses.

> Then why does these percentages do not sum up to 100%.

I think there are two issues here:

1. Concurrent recompilation ("compile async") happens on a different
thread, so it's possible for the sum total to exceed 100%. With
--noconcurrent_recompilation --noconcurrent_osr, it should come to
100%.

2. It looks like there is a bug in the profviz script, I speculate it
wasn't updated after some timer events were renamed (e.g. V8.ParseLazy
=> V8.ParseLazyMicroSeconds.) If I have time today, I'll file a CL
with an update.

A possible third issue is that I'm not 100% sure it handles nested
timer events correctly.
Reply all
Reply to author
Forward
0 new messages