We should make collecting metrics easier by adding an IDL attribute
Created attachment 164243 [details] Work in progress
Created attachment 164244 [details] Work in progress
I support this product and/or service. Want to buy.
Created attachment 164249 [details] Patch
Comment on attachment 164249 [details] Patch Non-bindings bits LGTM. Probably someone more familiar with V8 bindings should review that part though.
Maybe japhet or dglazkov? I believe haraken in on vacation.
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.
Comment on attachment 164249 [details] Patch Bikeshed: MeasureAs is a confusing term to me. MeasureUsage maybe?
Comment on attachment 164249 [details] Patch Oh, never mind. I see now that it takes a name to measure as. Carry on. :)
> 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.
(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.
Created attachment 164422 [details] Patch for landing
Comments addressed! Thanks.
Comment on attachment 164422 [details] Patch for landing Clearing flags on attachment: 164422 Committed r128788: <http://trac.webkit.org/changeset/128788>
All reviewed patches have been landed. Closing bug.