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

Unified Diff: content/child/threaded_data_provider.cc

Issue 1640283004: Add trace events for ThreadedDataProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/threaded_data_provider.cc
diff --git a/content/child/threaded_data_provider.cc b/content/child/threaded_data_provider.cc
index 91d385b81ef353ec2dc6c007585d57cdb139b302..2f82a2d19520402c36a4137f73a4ebfe8676233b 100644
--- a/content/child/threaded_data_provider.cc
+++ b/content/child/threaded_data_provider.cc
@@ -112,6 +112,7 @@ void DataProviderMessageFilter::OnReceivedData(int request_id,
int data_offset,
int data_length,
int encoded_data_length) {
+ TRACE_EVENT0("loader", "DataProviderMessageFilter::OnReceivedData");
DCHECK(io_task_runner_->BelongsToCurrentThread());
background_thread_.TaskRunner()->PostTask(
FROM_HERE,
@@ -303,6 +304,8 @@ void ThreadedDataProvider::OnReceivedDataOnBackgroundThread(
void ThreadedDataProvider::OnReceivedDataOnForegroundThread(
const char* data, int data_length, int encoded_data_length) {
DCHECK(ChildThreadImpl::current());
+ TRACE_EVENT0("loader",
+ "ThreadedDataProvider::OnReceivedDataOnForegroundThread");
background_thread_.TaskRunner()->PostTask(
FROM_HERE, base::Bind(&ThreadedDataProvider::ForwardAndACKData,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698