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

Unified Diff: chrome/browser/chrome_browser_application_mac.mm

Issue 2566443002: mac: Add tracing for -[BrowserCrApplication sendEvent:]. (Closed)
Patch Set: missing include. Created 4 years 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/chrome_browser_application_mac.mm
diff --git a/chrome/browser/chrome_browser_application_mac.mm b/chrome/browser/chrome_browser_application_mac.mm
index 63f3b083091c027b0c39ae953b6d5d4cd26a38b1..f465664004dcff370ae16c5975022dc17b36af4d 100644
--- a/chrome/browser/chrome_browser_application_mac.mm
+++ b/chrome/browser/chrome_browser_application_mac.mm
@@ -11,6 +11,7 @@
#include "base/mac/call_with_eh_frame.h"
#include "base/strings/stringprintf.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/trace_event/trace_event.h"
#import "chrome/browser/app_controller_mac.h"
#import "chrome/browser/mac/exception_processor.h"
#include "chrome/common/chrome_switches.h"
@@ -253,6 +254,7 @@ void CancelTerminate() {
}
- (void)sendEvent:(NSEvent*)event {
+ TRACE_EVENT0("toplevel", "BrowserCrApplication::sendEvent");
base::debug::ScopedCrashKey crash_key(
crash_keys::mac::kNSEvent, base::SysNSStringToUTF8([event description]));
« 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