diff options
author | Peter Kasting <pkasting@google.com> | 2015-02-05 13:43:27 -0800 |
---|---|---|
committer | Peter Kasting <pkasting@google.com> | 2015-02-05 21:45:28 +0000 |
commit | 650180680cc05b5771628d502bc6803a1d8997ad (patch) | |
tree | 54f97d086ed1ffd10574926b498330016f2bfec9 /net/udp/udp_socket_win.cc | |
parent | 7fcb729df6369250da0eccb113a64073e272de39 (diff) | |
download | chromium_src-650180680cc05b5771628d502bc6803a1d8997ad.zip chromium_src-650180680cc05b5771628d502bc6803a1d8997ad.tar.gz chromium_src-650180680cc05b5771628d502bc6803a1d8997ad.tar.bz2 |
Adding instrumentation to locate the source of jankiness.
Mechanical change that adds instrumentation required to locate the source of
jankiness (i.e. a long-running fragment of code executed as a part of the task
that causes jank) in the code. See the bug for details on what kind of jank we
are after. A number of similar CLs were landed, and none of them caused issues.
The code of the instrumentation is highly optimized and is not expected to
affect performance. The code simply creates a diagnostic task which is identical
to ones created by PostTask or IPC message handlers.
This also updates the existing instrumentation for bug 418183 to include the bug
number everywhere.
BUG=418183,455423,455434,455469
TEST=none
R=vadimt@chromium.org
TBR=jochen, mmenke, rockot, thestig
Review URL: https://codereview.chromium.org/901773002
Cr-Commit-Position: refs/heads/master@{#314885}
Diffstat (limited to 'net/udp/udp_socket_win.cc')
-rw-r--r-- | net/udp/udp_socket_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/udp/udp_socket_win.cc b/net/udp/udp_socket_win.cc index 3ef3e86..90ce661 100644 --- a/net/udp/udp_socket_win.cc +++ b/net/udp/udp_socket_win.cc @@ -149,7 +149,7 @@ void UDPSocketWin::Core::ReadDelegate::OnObjectSignaled(HANDLE object) { // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( - "UDPSocketWin_Core_ReadDelegate_OnObjectSignaled")); + "418183 UDPSocketWin::Core::ReadDelegate::OnObjectSignaled")); DCHECK_EQ(object, core_->read_overlapped_.hEvent); if (core_->socket_) @@ -162,7 +162,7 @@ void UDPSocketWin::Core::WriteDelegate::OnObjectSignaled(HANDLE object) { // TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed. tracked_objects::ScopedTracker tracking_profile( FROM_HERE_WITH_EXPLICIT_FUNCTION( - "UDPSocketWin_Core_WriteDelegate_OnObjectSignaled")); + "418183 UDPSocketWin::Core::WriteDelegate::OnObjectSignaled")); DCHECK_EQ(object, core_->write_overlapped_.hEvent); if (core_->socket_) |