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

Unified Diff: content/browser/tracing/tracing_ui.cc

Issue 717083003: Report trace buffer usage as number of events, not only percentage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: content/browser/tracing/tracing_ui.cc
diff --git a/content/browser/tracing/tracing_ui.cc b/content/browser/tracing/tracing_ui.cc
index 95e3ab92cdec6ce18a5c966dbbcfad86ce97e4e6..6d16015b688897504de5de1429f70c2a173fbb67 100644
--- a/content/browser/tracing/tracing_ui.cc
+++ b/content/browser/tracing/tracing_ui.cc
@@ -130,7 +130,9 @@ void OnRecordingEnabledAck(const WebUIDataSource::GotDataCallback& callback) {
}
void OnTraceBufferPercentFullResult(
- const WebUIDataSource::GotDataCallback& callback, float result) {
+ const WebUIDataSource::GotDataCallback& callback,
+ float result,
+ size_t buffer_usage) {
std::string str = base::DoubleToString(result);
callback.Run(base::RefCountedString::TakeString(&str));
}

Powered by Google App Engine
This is Rietveld 408576698