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

Unified Diff: content/browser/loader/redirect_to_file_resource_handler.cc

Issue 1569673002: [NOT FOR LANDING] Detailed loading traces Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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 | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/resource_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/redirect_to_file_resource_handler.cc
diff --git a/content/browser/loader/redirect_to_file_resource_handler.cc b/content/browser/loader/redirect_to_file_resource_handler.cc
index 670b3343d305d2cce1a7000d2e404ca181ead5e5..2ab5a82c5b61f67eed19a06e80e13757ebac83ac 100644
--- a/content/browser/loader/redirect_to_file_resource_handler.cc
+++ b/content/browser/loader/redirect_to_file_resource_handler.cc
@@ -5,6 +5,7 @@
#include "content/browser/loader/redirect_to_file_resource_handler.h"
#include <utility>
+#include "base/trace_event/trace_event.h"
#include "base/bind.h"
#include "base/logging.h"
@@ -143,6 +144,9 @@ RedirectToFileResourceHandler::RedirectToFileResourceHandler(
weak_factory_(this) {}
RedirectToFileResourceHandler::~RedirectToFileResourceHandler() {
+ TRACE_EVENT0("toplevel",
+ "RedirectToFileResourceHandler::~RedirectToFileResourceHandler");
+
// Orphan the writer to asynchronously close and release the temporary file.
if (writer_) {
writer_->Close();
@@ -165,6 +169,7 @@ bool RedirectToFileResourceHandler::OnResponseStarted(
}
bool RedirectToFileResourceHandler::OnWillStart(const GURL& url, bool* defer) {
+ TRACE_EVENT0("toplevel", "RedirectToFileResourceHandler::OnWillStart");
DCHECK(!writer_);
// Defer starting the request until we have created the temporary file.
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/resource_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698