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

Unified Diff: blimp/client/app/android/blimp_client_session_android.cc

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added empty implementation for linux client Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/client/app/android/blimp_client_session_android.h ('k') | blimp/client/app/android/blimp_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/app/android/blimp_client_session_android.cc
diff --git a/blimp/client/app/android/blimp_client_session_android.cc b/blimp/client/app/android/blimp_client_session_android.cc
index 88044493f3cedd1cd6d89c77757371f059712be6..54002fe727caf5da22f58a92cd6f5c1dc164e1e1 100644
--- a/blimp/client/app/android/blimp_client_session_android.cc
+++ b/blimp/client/app/android/blimp_client_session_android.cc
@@ -113,5 +113,17 @@ void BlimpClientSessionAndroid::OnAssignmentConnectionAttempted(
BlimpClientSession::OnAssignmentConnectionAttempted(result, assignment);
}
+base::android::ScopedJavaLocalRef<jintArray>
+BlimpClientSessionAndroid::GetDebugInfo(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& jobj) {
+ BlimpConnectionStatistics* stats =
+ BlimpClientSession::GetBlimpConnectionStatistics();
+ int metrics[] = {stats->Get(BlimpConnectionStatistics::BYTES_RECEIVED),
+ stats->Get(BlimpConnectionStatistics::BYTES_SENT),
+ stats->Get(BlimpConnectionStatistics::COMMIT)};
+ return base::android::ToJavaIntArray(env, metrics, arraysize(metrics));
+}
+
} // namespace client
} // namespace blimp
« no previous file with comments | « blimp/client/app/android/blimp_client_session_android.h ('k') | blimp/client/app/android/blimp_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698