New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 591434 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug

Blocked on:
issue 629194



Sign in to add a comment

UrlRequestMetrics#getSentBytesCount() always returns null

Project Member Reported by ashaikh@google.com, Mar 2 2016

Issue description

Steps to reproduce the problem:
1. Create a CronetEngine and call enableNetworkQualityEstimator followed by addRequestFinishedListener.
2. Create and send a UrlRequest.
3. In your RequestFinishedListener#onRequestFinished(UrlRequestInfo), UrlRequestInfo.getMetrics().getSendBytesCount() will always return null.

What is the expected behavior?
UrlRequestInfo.getMetrics().getSendBytesCount() should return the total amount of data sent over the network.

What went wrong?
CronetUrlRequest does not expose sendBytesCount from the underlying URLRequest:
https://code.google.com/p/chromium/codesearch#chromium/src/components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java&l=692
https://code.google.com/p/chromium/codesearch#chromium/src/net/url_request/url_request.h&l=401

Did this work before? No 

Chrome version: 48.0.2564.116  Channel: canary
OS Version: 
Flash Version: Shockwave Flash 20.0 r0
 

Comment 1 by mef@chromium.org, Mar 2 2016

Components: Internals>Network>Library
Status: Available (was: Unconfirmed)
Cc: bengr@chromium.org
Not sure who really owns this, just expanding the CC list in case it's you guys.

Comment 4 by mef@chromium.org, Apr 6 2016

Cc: mge...@chromium.org k...@google.com
The experimental UrlRequestMetrics API was added by klm@, and will likely be owned by mgersh@.

Comment 5 by mef@chromium.org, Apr 26 2016

Owner: mge...@chromium.org
Status: Assigned (was: Available)
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 3 2016

Labels: Hotlist-Google

Comment 7 by sidv@chromium.org, Jun 14 2016

Labels: M-54

Comment 8 by sidv@chromium.org, Jul 18 2016

Labels: MetricsAPI

Comment 9 by mef@chromium.org, Jul 18 2016

Blockedon: 629194

Comment 10 by bengr@chromium.org, Jul 18 2016

Cc: tbansal@chromium.org

Comment 13 by dimu@google.com, Nov 4 2016

Labels: -merge-merged-2840
[Automated comment] removing mislabelled merge-merged-2840
Status: Fixed (was: Assigned)

Sign in to add a comment