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

Unified Diff: chrome/browser/ui/webui/chrome_url_data_manager_backend.cc

Issue 10020052: Added tracing to data-manager's loading of resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moved tracing to after start of loading. Created 8 years, 8 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: chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
diff --git a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
index 1e12c8e23bcfd57c5f2f024454e6723f5de5b65e..993ebad1d62c526d57debedea051d796ed28c7ac 100644
--- a/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
+++ b/chrome/browser/ui/webui/chrome_url_data_manager_backend.cc
@@ -10,6 +10,7 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
+#include "base/debug/trace_event.h"
#include "base/file_util.h"
#include "base/lazy_instance.h"
#include "base/memory/ref_counted_memory.h"
@@ -235,6 +236,9 @@ void URLRequestChromeJob::Start() {
FROM_HERE,
base::Bind(&URLRequestChromeJob::StartAsync,
weak_factory_.GetWeakPtr()));
+
+ TRACE_EVENT_ASYNC_BEGIN1("browser", "DataManager:Request", this, "URL",
+ request_->url().possibly_invalid_spec());
}
void URLRequestChromeJob::Kill() {
@@ -256,6 +260,7 @@ void URLRequestChromeJob::GetResponseInfo(net::HttpResponseInfo* info) {
}
void URLRequestChromeJob::DataAvailable(RefCountedMemory* bytes) {
+ TRACE_EVENT_ASYNC_END0("browser", "DataManager:Request", this);
if (bytes) {
// The request completed, and we have all the data.
// Clear any IO pending status.
« 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