Bug 96837

Summary: We should make collecting metrics easier by adding an IDL attribute
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, eric, gyuyoung.kim, haraken, japhet, mjs, ojan, rakuco, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Work in progress
none
Work in progress
none
Patch
none
Patch for landing none

Adam Barth
Reported 2012-09-14 15:53:58 PDT
We should make collecting metrics easier by adding an IDL attribute
Attachments
Work in progress (18.89 KB, patch)
2012-09-14 15:57 PDT, Adam Barth
no flags
Work in progress (18.85 KB, patch)
2012-09-14 15:58 PDT, Adam Barth
no flags
Patch (25.62 KB, patch)
2012-09-14 16:49 PDT, Adam Barth
no flags
Patch for landing (29.31 KB, patch)
2012-09-17 11:22 PDT, Adam Barth
no flags
Adam Barth
Comment 1 2012-09-14 15:57:44 PDT
Created attachment 164243 [details] Work in progress
Adam Barth
Comment 2 2012-09-14 15:58:28 PDT
Created attachment 164244 [details] Work in progress
Eric Seidel (no email)
Comment 3 2012-09-14 15:59:42 PDT
I support this product and/or service. Want to buy.
Adam Barth
Comment 4 2012-09-14 16:49:54 PDT
Ojan Vafai
Comment 5 2012-09-14 17:00:53 PDT
Comment on attachment 164249 [details] Patch Non-bindings bits LGTM. Probably someone more familiar with V8 bindings should review that part though.
Adam Barth
Comment 6 2012-09-14 17:08:33 PDT
Maybe japhet or dglazkov? I believe haraken in on vacation.
Kentaro Hara
Comment 7 2012-09-15 05:48:03 PDT
Comment on attachment 164249 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=164249&action=review The V8 binding LGTM. Do you have any plan to support [MeasureAs] in JSC? > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:1828 > +END > + push(@implContent, GenerateFeatureObservation($function->signature->extendedAttributes->{"MeasureAs"})); > + > + push(@implContent, <<END); Nit: For readability, shall we avoid the END? You can store the result of GenerateFeatureObservation() to some variable before line 1822 and use the variable here. > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2023 > +END > + push(@implContent, GenerateFeatureObservation($function->signature->extendedAttributes->{"MeasureAs"})); > + > + push(@implContent, <<END); Ditto.
Ojan Vafai
Comment 8 2012-09-15 08:23:22 PDT
Comment on attachment 164249 [details] Patch Bikeshed: MeasureAs is a confusing term to me. MeasureUsage maybe?
Ojan Vafai
Comment 9 2012-09-15 08:24:03 PDT
Comment on attachment 164249 [details] Patch Oh, never mind. I see now that it takes a name to measure as. Carry on. :)
Adam Barth
Comment 10 2012-09-15 11:41:21 PDT
> The V8 binding LGTM. Do you have any plan to support [MeasureAs] in JSC? Currently Chromium is the only port that has a backend for Histograms. It doesn't seem worth supporting in JSC since it will just be overhead at this point.
Kentaro Hara
Comment 11 2012-09-15 15:15:36 PDT
(In reply to comment #10) > > The V8 binding LGTM. Do you have any plan to support [MeasureAs] in JSC? > > Currently Chromium is the only port that has a backend for Histograms. It doesn't seem worth supporting in JSC since it will just be overhead at this point. Got it. Then [V8MeasureAs] might be a better name.
Adam Barth
Comment 12 2012-09-17 11:22:34 PDT
Created attachment 164422 [details] Patch for landing
Adam Barth
Comment 13 2012-09-17 11:28:10 PDT
Comments addressed! Thanks.
WebKit Review Bot
Comment 14 2012-09-17 11:53:14 PDT
Comment on attachment 164422 [details] Patch for landing Clearing flags on attachment: 164422 Committed r128788: <http://trac.webkit.org/changeset/128788>
WebKit Review Bot
Comment 15 2012-09-17 11:53:18 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.