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

Unified Diff: content/renderer/accessibility/render_accessibility_impl.cc

Issue 2827443003: Add some tracing to most expensive accessibility functions. (Closed)
Patch Set: Created 3 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 | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/accessibility/render_accessibility_impl.cc
diff --git a/content/renderer/accessibility/render_accessibility_impl.cc b/content/renderer/accessibility/render_accessibility_impl.cc
index 104d6cad563d976426b96510795026cf7ee3e4ad..2e160d543d62f2d74037b72cd4291f3d3f7341da 100644
--- a/content/renderer/accessibility/render_accessibility_impl.cc
+++ b/content/renderer/accessibility/render_accessibility_impl.cc
@@ -59,6 +59,9 @@ const size_t kMaxSnapshotNodeCount = 5000;
void RenderAccessibilityImpl::SnapshotAccessibilityTree(
RenderFrameImpl* render_frame,
AXContentTreeUpdate* response) {
+ TRACE_EVENT0("accessibility",
+ "RenderAccessibilityImpl::SnapshotAccessibilityTree");
+
DCHECK(render_frame);
DCHECK(response);
if (!render_frame->GetWebFrame())
@@ -342,6 +345,9 @@ WebDocument RenderAccessibilityImpl::GetMainDocument() {
}
void RenderAccessibilityImpl::SendPendingAccessibilityEvents() {
+ TRACE_EVENT0("accessibility",
+ "RenderAccessibilityImpl::SendPendingAccessibilityEvents");
+
const WebDocument& document = GetMainDocument();
if (document.IsNull())
return;
@@ -427,6 +433,8 @@ void RenderAccessibilityImpl::SendPendingAccessibilityEvents() {
}
void RenderAccessibilityImpl::SendLocationChanges() {
+ TRACE_EVENT0("accessibility", "RenderAccessibilityImpl::SendLocationChanges");
+
std::vector<AccessibilityHostMsg_LocationChangeParams> messages;
// Update layout on the root of the tree.
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698