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

Unified Diff: components/html_viewer/html_document.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/font_service/public/cpp/font_loader.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index ce4f1feff6651cc377f661c041fc311fd4ec7045..4ac66f9cd55306fbc16f682797254b2d3ac3986b 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -117,6 +117,7 @@ HTMLDocument::HTMLDocument(mojo::ApplicationImpl* html_document_app,
}
void HTMLDocument::Destroy() {
+ TRACE_EVENT0("html_viewer", "HTMLDocument::Destroy");
if (resource_waiter_) {
mus::Window* root = resource_waiter_->root();
if (root) {
@@ -147,6 +148,7 @@ HTMLDocument::~HTMLDocument() {
}
void HTMLDocument::Load() {
+ TRACE_EVENT0("html_viewer", "HTMLDocument::Load");
DCHECK(resource_waiter_ && resource_waiter_->is_ready());
// Note: |window| is null if we're taking over for an existing frame.
@@ -208,6 +210,7 @@ void HTMLDocument::OnConnectionLost(mus::WindowTreeConnection* connection) {
}
void HTMLDocument::OnFrameDidFinishLoad() {
+ TRACE_EVENT0("html_viewer", "HTMLDocument::OnFrameDidFinishLoad");
did_finish_local_frame_load_ = true;
scoped_ptr<BeforeLoadCache> before_load_cache = before_load_cache_.Pass();
if (!before_load_cache)
@@ -240,6 +243,7 @@ void HTMLDocument::OnFrameSwappedToRemote() {
}
void HTMLDocument::OnSwap(HTMLFrame* frame, HTMLFrameDelegate* old_delegate) {
+ TRACE_EVENT0("html_viewer", "HTMLDocument::OnSwap");
DCHECK(frame->IsLocal());
DCHECK(frame->window());
DCHECK(!frame_);
« no previous file with comments | « components/font_service/public/cpp/font_loader.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698