Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Issue 582253002: Cast: Reduce the size of stats (Closed)

Created:
6 years, 3 months ago by Alpha Left Google
Modified:
6 years, 3 months ago
Reviewers:
imcheng, hubbe
CC:
chromium-reviews, hclam+watch_chromium.org, imcheng+watch_chromium.org, hguihot+watch_chromium.org, jasonroberts+watch_google.com, avayvod+watch_chromium.org, pwestin+watch_google.com, feature-media-reviews_chromium.org, miu+watch_chromium.org, hubbe+watch_chromium.org, mikhal+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cast: Reduce the size of stats Stats generated by cast streaming API contains some redundancy stuff like "bucket" and "count". Also remove 0 buckets in the stats to reduce size. Committed: https://crrev.com/94f57a1781b0749fdb7884a9b3b7036e58b1908c Cr-Commit-Position: refs/heads/master@{#296309}

Patch Set 1 #

Patch Set 2 : nothing #

Total comments: 1

Patch Set 3 : ordered #

Patch Set 4 : more space saving #

Total comments: 8

Patch Set 5 : updated #

Patch Set 6 : remove 0 buckets #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -14 lines) Patch
M media/cast/logging/stats_event_subscriber.cc View 1 2 3 4 5 3 chunks +21 lines, -14 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
Alpha Left Google
6 years, 3 months ago (2014-09-18 21:58:16 UTC) #2
imcheng
https://codereview.chromium.org/582253002/diff/20001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/582253002/diff/20001/media/cast/logging/stats_event_subscriber.cc#newcode62 media/cast/logging/stats_event_subscriber.cc:62: scoped_ptr<base::DictionaryValue> The problem with this approach is that the ...
6 years, 3 months ago (2014-09-18 22:06:20 UTC) #3
Alpha Left Google
On 2014/09/18 22:06:20, imcheng1 wrote: > https://codereview.chromium.org/582253002/diff/20001/media/cast/logging/stats_event_subscriber.cc > File media/cast/logging/stats_event_subscriber.cc (right): > > https://codereview.chromium.org/582253002/diff/20001/media/cast/logging/stats_event_subscriber.cc#newcode62 > ...
6 years, 3 months ago (2014-09-18 22:59:01 UTC) #4
Alpha Left Google
Updated such that result in a list. The size is now 9.2KB.
6 years, 3 months ago (2014-09-19 02:08:53 UTC) #5
imcheng
lgtm Thanks!
6 years, 3 months ago (2014-09-19 08:13:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582253002/40001
6 years, 3 months ago (2014-09-19 08:14:25 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-09-19 08:14:27 UTC) #10
Alpha Left Google
+hubbe for owner approval.
6 years, 3 months ago (2014-09-19 18:32:08 UTC) #12
Alpha Left Google
Code updated to compress consecutive 0 count buckets into one. This saves even more.
6 years, 3 months ago (2014-09-19 20:43:22 UTC) #13
imcheng
https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc#newcode68 media/cast/logging/stats_event_subscriber.cc:68: bucket->SetInteger(base::StringPrintf("< %" PRId64, min_), I think you can also ...
6 years, 3 months ago (2014-09-19 20:48:14 UTC) #14
imcheng
https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc#newcode78 media/cast/logging/stats_event_subscriber.cc:78: if (!buckets_[index]) { nit: prefer explicitly checking != 0. ...
6 years, 3 months ago (2014-09-19 20:52:34 UTC) #15
imcheng
https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc#newcode83 media/cast/logging/stats_event_subscriber.cc:83: int64 upper = min_ + end_index * width_ - ...
6 years, 3 months ago (2014-09-19 20:53:56 UTC) #16
Alpha Left Google
https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc File media/cast/logging/stats_event_subscriber.cc (right): https://codereview.chromium.org/582253002/diff/60001/media/cast/logging/stats_event_subscriber.cc#newcode68 media/cast/logging/stats_event_subscriber.cc:68: bucket->SetInteger(base::StringPrintf("< %" PRId64, min_), On 2014/09/19 20:48:14, imcheng1 wrote: ...
6 years, 3 months ago (2014-09-19 20:57:56 UTC) #17
imcheng
lgtm
6 years, 3 months ago (2014-09-19 21:00:41 UTC) #18
Alpha Left Google
Ping hubbe.
6 years, 3 months ago (2014-09-22 18:39:22 UTC) #19
Alpha Left Google
Updated code and removed 0 buckets.
6 years, 3 months ago (2014-09-23 19:52:23 UTC) #20
hubbe
lgtm
6 years, 3 months ago (2014-09-23 22:45:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/582253002/100001
6 years, 3 months ago (2014-09-23 22:46:41 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001) as d66e60e380391577b284bbe269fd17dfed1c60da
6 years, 3 months ago (2014-09-24 00:05:59 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 00:06:34 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/94f57a1781b0749fdb7884a9b3b7036e58b1908c
Cr-Commit-Position: refs/heads/master@{#296309}

Powered by Google App Engine
This is Rietveld 408576698