RESOLVED FIXED 53348
Implement media statistics
https://bugs.webkit.org/show_bug.cgi?id=53348
Summary Implement media statistics
Steve Lacey
Reported 2011-01-28 16:04:41 PST
Add webkit{Decoded,Dropped}Frames to video element. Add webkit{Audio,Video}BytesDecoded to media element.
Attachments
Patch (33.03 KB, patch)
2011-01-28 17:48 PST, Steve Lacey
no flags
Patch (33.07 KB, patch)
2011-02-01 12:43 PST, Steve Lacey
eric.carlson: review+
commit-queue: commit-queue-
Steve Lacey
Comment 1 2011-01-28 17:48:15 PST
Steve Lacey
Comment 2 2011-01-28 17:51:34 PST
The trickiest bit in all this was finding everything I needed to change to add a new feature define ;-) I believe the configure.ac and GNUMakefile.am changes will be tested by the gtk bots? A potential modification to this would be to move the {audio,video}BytesDecoded attributes to the video element and add a pure bytesDecoded to the audio element. Thoughts? I'm still not sure what the best thing to do when the data is not available (which shouldn't actually be the case now as it's turned off in all ports by default).
Eric Seidel (no email)
Comment 3 2011-01-30 04:04:19 PST
Very interesting. Looks sane to me, but CCing others who might have more context about APUI counters like these.
Eric Carlson
Comment 4 2011-01-31 17:34:05 PST
Comment on attachment 80530 [details] Patch Looks good overall, but I am torn about having the compile flag *only* checked in the IDL. We only need to hide the properties from JavaScript for a port that doesn't implement this, and I don't think it is necessary to surround all of the code in every class, I think it could be useful to have it in HTMLMediaElement so it is clear to anyone looking at the code that it is a compile time feature.
Steve Lacey
Comment 5 2011-01-31 17:52:41 PST
Thanks! Am a little bit unclear from your comment whether you'd like me to add #if's to the implementation files or not? Also, am not sure how to test the configure.ac, GNUMakefile.am or vsprops changes. Do the bots do that?
Eric Carlson
Comment 6 2011-02-01 08:14:15 PST
(In reply to comment #5) > Thanks! > > Am a little bit unclear from your comment whether you'd like me to add #if's to the implementation files or not? > Sorry, my comment is completely unclear. I would prefer to have the #if in HTMLMediaElement.cpp/.h so it is easy to see that it is an opt-in feature. I don't have strong feelings about MediaPlayer and friends, either is OK. > Also, am not sure how to test the configure.ac, GNUMakefile.am or vsprops changes. Do the bots do that? You will have to babysit the build bots once the change lands to see if you broke something.
Steve Lacey
Comment 7 2011-02-01 12:43:49 PST
Eric Carlson
Comment 8 2011-02-01 12:45:52 PST
Comment on attachment 80805 [details] Patch Thanks!
Steve Lacey
Comment 9 2011-02-01 15:08:23 PST
I'm still unclear about why the patch is failing to apply on the gtk-ews bot. Any clues? If this is ok. Can I get a cq+ :-) Or is there some other process I'm missing (new to this...) Thx.
WebKit Commit Bot
Comment 10 2011-02-01 15:53:37 PST
Comment on attachment 80805 [details] Patch Rejecting attachment 80805 [details] from commit-queue. Failed to run "['./Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=cr-jail-3', 'apply-..." exit_code: 2 Last 500 characters of output: of 2 hunks FAILED -- saving rejects to file WebKitLibraries/win/tools/vsprops/FeatureDefines.vsprops.rej patching file WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops Hunk #1 FAILED at 9. Hunk #2 FAILED at 197. 2 out of 2 hunks FAILED -- saving rejects to file WebKitLibraries/win/tools/vsprops/FeatureDefinesCairo.vsprops.rej patching file configure.ac Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'Eric Carlson', u'--for..." exit_code: 1 Full output: http://queues.webkit.org/results/7685714
Steve Lacey
Comment 11 2011-02-01 16:10:33 PST
Sigh. I have really no idea why the patch to those two files would fail to apply as they haven't been modified in 3 months. Will do some digging, but if anyone has a flash of inspiration about what I might be doing wrong I'd appreciate it...
Adam Barth
Comment 12 2011-02-01 16:15:16 PST
Dan was telling me that it might have something to do with line endings. In any case, I'm sure its not your fault. Someone should be able to help you land your patch manually (all my working copies are busy at the moment...).
Daniel Bates
Comment 13 2011-02-01 16:21:20 PST
(In reply to comment #12) > Dan was telling me that it might have something to do with line endings. In any case, I'm sure its not your fault. Someone should be able to help you land your patch manually (all my working copies are busy at the moment...). I'll take a look shortly.
Daniel Bates
Comment 14 2011-02-02 11:43:46 PST
(In reply to comment #13) > (In reply to comment #12) > > Dan was telling me that it might have something to do with line endings. In any case, I'm sure its not your fault. Someone should be able to help you land your patch manually (all my working copies are busy at the moment...). > > I'll take a look shortly. Weird. I was able to apply the patch using svn-apply without issue. Is the commit-queue bot running under Windows?
Daniel Bates
Comment 15 2011-02-02 11:44:34 PST
I'll land this by hand for Steve Lacey.
Daniel Bates
Comment 16 2011-02-02 11:46:22 PST
(In reply to comment #14) > Weird. I was able to apply the patch using svn-apply without issue. Is the commit-queue bot running under Windows? Disregard this remark. I think something is up with patch(1) on GTK-ews bot.
Daniel Bates
Comment 17 2011-02-02 11:58:25 PST
Committed in changeset 77394 <http://trac.webkit.org/changeset/77394>.
Note You need to log in before you can comment on or make changes to this bug.