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

Unified Diff: content/public/browser/tracing_controller.h

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
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/tracing_controller.h
diff --git a/content/public/browser/tracing_controller.h b/content/public/browser/tracing_controller.h
index 5b3eb4e4873abf6930d398294003aa0ef84c4098..2ce14c9c4b09b0f9f669de0392657ce8235d4684 100644
--- a/content/public/browser/tracing_controller.h
+++ b/content/public/browser/tracing_controller.h
@@ -161,11 +161,11 @@ class TracingController {
const scoped_refptr<TraceDataSink>& trace_data_sink) = 0;
// Get the maximum across processes of trace buffer percent full state.
- // When the TraceBufferPercentFull value is determined, the callback is
+ // When the TraceBufferUsage value is determined, the callback is
// called.
- typedef base::Callback<void(float)> GetTraceBufferPercentFullCallback;
- virtual bool GetTraceBufferPercentFull(
- const GetTraceBufferPercentFullCallback& callback) = 0;
+ typedef base::Callback<void(float, size_t)> GetTraceBufferUsageCallback;
+ virtual bool GetTraceBufferUsage(
+ const GetTraceBufferUsageCallback& callback) = 0;
// |callback| will will be called every time the given event occurs on any
// process.
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698