Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Chrome CPU profiler : 'Average' and 'Number of calls'
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bsr...@gmail.com  
View profile  
 More options Nov 8 2012, 10:03 am
From: bsr...@gmail.com
Date: Thu, 8 Nov 2012 07:03:52 -0800 (PST)
Local: Thurs, Nov 8 2012 10:03 am
Subject: Chrome CPU profiler : 'Average' and 'Number of calls'

Hope this is the official group for Developer Tool.

I have posted the same in
SO, http://stackoverflow.com/questions/13289582/chrome-cpu-profiler-avera...

In Safari, I can see Average and #calls, but there I can't see any %ge ,
actual time settings. So, I don't have an idea of actual time.

Chrome dev tools has everything I need, except the #calls to a function.
Please help me to enable it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrey Kosyakov  
View profile  
 More options Nov 8 2012, 10:14 am
From: Andrey Kosyakov <ca...@chromium.org>
Date: Thu, 8 Nov 2012 19:13:50 +0400
Local: Thurs, Nov 8 2012 10:13 am
Subject: Re: [Chrome DevTools] Chrome CPU profiler : 'Average' and 'Number of calls'

Hi,

On Thu, Nov 8, 2012 at 7:03 PM, <bsr...@gmail.com> wrote:
> Hope this is the official group for Developer Tool.

It is!

> In Safari, I can see Average and #calls, but there I can't see any %ge ,
> actual time settings. So, I don't have an idea of actual time.

> Chrome dev tools has everything I need, except the #calls to a function.
> Please help me to enable it.

Safari and Chrome use different JavaScript engines (JSC in Safari and v8 in
chrome) and the profilers are different. JSC has an instrumenting profiler,
meaning it records every call to the function, and v8's profiler is a
statistical one, meaning it pokes into the stack of the running code
periodically (typically once in 1ms now) and accounts time to various
functions depending on how often they appear on the stack. As a result, the
numbers are somewhat approximate and we can't get the exact invocation
counts for each function.

Best regards,
Andrey.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bsr...@gmail.com  
View profile  
 More options Nov 8 2012, 11:53 am
From: bsr...@gmail.com
Date: Thu, 8 Nov 2012 08:53:19 -0800 (PST)
Local: Thurs, Nov 8 2012 11:53 am
Subject: Re: [Chrome DevTools] Chrome CPU profiler : 'Average' and 'Number of calls'

Thanks Andrey,

In safari and Firefox, I saw recursive calls to create svg elements (about
10k times).  The attached image, as well as the one in SO shows the profile
of just the draw function (which in turn recursively create nodes). It
shows a total time of 20sec, but I can't see what causes it. Can you please
advise how I can narrow down to the bottleneck.

<https://lh4.googleusercontent.com/-62R_A0VdPEU/UJvjZFnctGI/AAAAAAAAAA...>

thanks again.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrey Kosyakov  
View profile  
 More options Nov 8 2012, 1:24 pm
From: Andrey Kosyakov <ca...@chromium.org>
Date: Thu, 8 Nov 2012 22:24:48 +0400
Local: Thurs, Nov 8 2012 1:24 pm
Subject: Re: [Chrome DevTools] Chrome CPU profiler : 'Average' and 'Number of calls'

We account to (program) samples that did not have any JavaScript stack  --
so those 20s you have shown as (program) is not JavaScript or anything
invoked from JavaScript. This leaves to major cases that
you unfortunately can't distinguish with the profiler so far: idle time or
some native code not invoked from JS (this often happens to be layout &
painting stuff that happens asynchronously). A good way to identify whether
this is idle time or something else would be to use Timeline panel. You may
also find an option "Show CPU activity on the ruler" useful (we added it
recently, so it's only available in canary builds so far).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic