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

Unified Diff: ui/gfx/win/hwnd_util.cc

Issue 835183002: Further instrumentations to find jank in Windows message processing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « base/message_loop/message_pump_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/win/hwnd_util.cc
diff --git a/ui/gfx/win/hwnd_util.cc b/ui/gfx/win/hwnd_util.cc
index 1d23d962addd55e8a8ca084b719626e953a81dd6..8f19292026ed1005d07a6eebc1a2d45516571a6f 100644
--- a/ui/gfx/win/hwnd_util.cc
+++ b/ui/gfx/win/hwnd_util.cc
@@ -5,6 +5,7 @@
#include "ui/gfx/win/hwnd_util.h"
#include "base/i18n/rtl.h"
+#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_util.h"
#include "base/tracked_objects.h"
#include "base/win/metro.h"
@@ -112,6 +113,10 @@ void* SetWindowUserData(HWND hwnd, void* user_data) {
}
void* GetWindowUserData(HWND hwnd) {
+ // TODO(vadimt): Remove ScopedTracker below once crbug.com/440919 is fixed.
+ tracked_objects::ScopedTracker tracking_profile(
+ FROM_HERE_WITH_EXPLICIT_FUNCTION("440919 GetWindowUserData"));
+
DWORD process_id = 0;
GetWindowThreadProcessId(hwnd, &process_id);
// A window outside the current process needs to be ignored.
« no previous file with comments | « base/message_loop/message_pump_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698