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

Unified Diff: components/html_viewer/html_frame.cc

Issue 1421483003: mandoline: Start adding trace events for mandoline stuff. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 2 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 | « components/html_viewer/html_document.cc ('k') | components/web_view/find_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame.cc
diff --git a/components/html_viewer/html_frame.cc b/components/html_viewer/html_frame.cc
index 2d19484cf68ec4fe544f898b1c85d3fcac04f562..7b700afa1a8c1d017eb9c7939b16802f83e2b7d5 100644
--- a/components/html_viewer/html_frame.cc
+++ b/components/html_viewer/html_frame.cc
@@ -126,6 +126,7 @@ HTMLFrame::HTMLFrame(CreateParams* params)
delegate_(params->delegate),
pending_navigation_(false),
weak_factory_(this) {
+ TRACE_EVENT0("html_viewer", "HTMLFrame::HTMLFrame");
if (parent_)
parent_->children_.push_back(this);
@@ -273,6 +274,9 @@ bool HTMLFrame::HasLocalDescendant() const {
void HTMLFrame::LoadRequest(const blink::WebURLRequest& request,
base::TimeTicks navigation_start_time) {
+ TRACE_EVENT1("html_viewer", "HTMLFrame::LoadRequest",
+ "url", request.url().string().utf8());
+
DCHECK(IsLocal());
DVLOG(2) << "HTMLFrame::LoadRequest this=" << this << " id=" << id_
@@ -618,6 +622,8 @@ void HTMLFrame::UpdateFocus() {
}
void HTMLFrame::SwapToRemote() {
+ TRACE_EVENT0("html_viewer", "HTMLFrame::SwapToRemote");
+
DVLOG(2) << "HTMLFrame::SwapToRemote this=" << this << " id=" << id_;
DCHECK(IsLocal());
@@ -665,6 +671,7 @@ void HTMLFrame::SwapToLocal(
HTMLFrameDelegate* delegate,
mus::Window* window,
const mojo::Map<mojo::String, mojo::Array<uint8_t>>& properties) {
+ TRACE_EVENT0("html_viewer", "HTMLFrame::SwapToLocal");
DVLOG(2) << "HTMLFrame::SwapToLocal this=" << this << " id=" << id_;
CHECK(!IsLocal());
// It doesn't make sense for the root to swap to local.
« no previous file with comments | « components/html_viewer/html_document.cc ('k') | components/web_view/find_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698