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

Unified Diff: content/browser/tracing/trace_message_filter.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
Index: content/browser/tracing/trace_message_filter.h
diff --git a/content/browser/tracing/trace_message_filter.h b/content/browser/tracing/trace_message_filter.h
index 3d12d76d300d23f497517afcafa419adcf15511d..aba87968e99fe8c0d1a0c2c1a642373a2afcc3eb 100644
--- a/content/browser/tracing/trace_message_filter.h
+++ b/content/browser/tracing/trace_message_filter.h
@@ -31,7 +31,7 @@ class TraceMessageFilter : public BrowserMessageFilter {
const base::debug::TraceOptions& options);
void SendDisableMonitoring();
void SendCaptureMonitoringSnapshot();
- void SendGetTraceBufferPercentFull();
+ void SendGetTraceLogStatus();
void SendSetWatchEvent(const std::string& category_name,
const std::string& event_name);
void SendCancelWatchEvent();
@@ -45,7 +45,7 @@ class TraceMessageFilter : public BrowserMessageFilter {
void OnEndTracingAck(const std::vector<std::string>& known_categories);
void OnCaptureMonitoringSnapshotAcked();
void OnWatchEventMatched();
- void OnTraceBufferPercentFullReply(float percent_full);
+ void OnTraceLogStatusReply(const base::debug::TraceLogStatus& status);
void OnTraceDataCollected(const std::string& data);
void OnMonitoringTraceDataCollected(const std::string& data);
@@ -56,7 +56,7 @@ class TraceMessageFilter : public BrowserMessageFilter {
bool is_awaiting_end_ack_;
// Awaiting ack for previously sent SendCaptureMonitoringSnapshot
bool is_awaiting_capture_monitoring_snapshot_ack_;
- // Awaiting ack for previously sent SendGetTraceBufferPercentFull
+ // Awaiting ack for previously sent SendGetTraceLogStatus
bool is_awaiting_buffer_percent_full_ack_;
DISALLOW_COPY_AND_ASSIGN(TraceMessageFilter);
« no previous file with comments | « content/browser/devtools/protocol/tracing_handler.cc ('k') | content/browser/tracing/trace_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698