If I'm reading it right, ExecuteMicroSeconds is per call, not an aggregate.
Additionally as a renderer be running multiple pages trying to track this
at the v8 level wouldn't be that accurate. I'm wondering if the better
place to track this is in blink's bindings? Specifically in the code
generation it could presumably track the times. Yuki, how realistic is this?

Thanks,

  -Scott

On Wed, Jan 12, 2022 at 4:16 PM Scott Violet <[email protected]> wrote:

> Thanks for the pointer!
>
> I noticed the histogram has the caveat 'excluding callbacks.' What does
> that mean in this context?
>
> Thanks,
>
>   -Scott
>
> On Mon, Jan 10, 2022 at 1:32 AM Camillo Bruni <[email protected]> wrote:
>
>> Getting the detailed V8 times comes at a measurable overhead, this
>> piggybacking on the existing V8ExecuteMicroseconds data from the persistent
>> V8SlowHistograms trial is most likely your best option here to limit
>> negative side effects from multiple trials slowing down the user.
>>
>> On Fri, 7 Jan 2022, 09:57 Leszek Swirski, <[email protected]> wrote:
>>
>>> +Camillo Bruni <[email protected]>
>>> We have a V8.ExecuteMicroSeconds histogram which is enabled for 50% of
>>> canary and dev (via the V8SlowHistograms
>>> <https://source.chromium.org/chromium/chromium/src/+/main:gin/gin_features.cc;l=108;drc=26479386abe0c05c9661f6d8c1412dde636d8ecb>
>>>  feature
>>> flag). Maybe you could somehow intercept writes to this histogram before
>>> FCP?
>>>
>>> On Thu, Jan 6, 2022 at 2:35 PM Yuki Shiino <[email protected]>
>>> wrote:
>>>
>>>> [email protected] <[email protected]>
>>>>
>>>>
>>>> 2022年1月5日(水) 9:05 Scott Violet <[email protected]>:
>>>>
>>>>> Ping. Any suggestions?
>>>>>
>>>>> Thanks,
>>>>>
>>>>>   -Scott
>>>>>
>>>>> On Tue, Dec 21, 2021 at 5:15 AM Yuki Shiino <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> +platform-architecture-dev <[email protected]>
>>>>>>
>>>>>> 2021年12月21日(火) 9:45 Scott Violet <[email protected]>:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I'm interested in tracking how much time we spend in v8 prior to
>>>>>>> fcp. Any idea if we have a metric for this? Presumably such a metric 
>>>>>>> would
>>>>>>> involve instrumenting bindings, but I'm not positive there.
>>>>>>>
>>>>>>
>>>>>> I know only about RuntimeCallStats
>>>>>> <https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/platform/bindings/RuntimeCallStats.md>
>>>>>>  (V8
>>>>>> looks having the same concept maybe around here
>>>>>> <https://source.chromium.org/chromium/chromium/src/+/main:v8/src/logging/runtime-call-stats.h;bpv=1;bpt=1;l=570?q=RuntimeCallStats%20case:yes&ss=chromium>).
>>>>>> However, if you're interested in measuring it in the wild, 
>>>>>> RuntimeCallStats
>>>>>> wouldn't be a good fit.
>>>>>>
>>>>>> Anyone else would know a better idea?
>>>>>>
>>>>>> Cheers,
>>>>>> Yuki Shiino
>>>>>>
>>>>>> Thanks,
>>>>>>>
>>>>>>>   -Scott
>>>>>>>
>>>>>> --
>>>> --
>>>> v8-dev mailing list
>>>> [email protected]
>>>> http://groups.google.com/group/v8-dev
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "v8-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/v8-dev/CAN0uC_TCyPxXdVGbAmh7JBR3e7UHxXYXtuW-yUpM9Q1hSbXBKQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/v8-dev/CAN0uC_TCyPxXdVGbAmh7JBR3e7UHxXYXtuW-yUpM9Q1hSbXBKQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAKARY_mJSiNRXGTxP9xWdoE4RaaQCgoKo9F_CGrQbHbYogjfTg%40mail.gmail.com.

Reply via email to