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

Issue 2047433004: content: Add heartbeat trace for CategorizedWorkerPool. (Closed)

Created:
4 years, 6 months ago by prashant.n
Modified:
4 years, 6 months ago
Reviewers:
danakj, robliao, jam, reveman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: Add heartbeat trace for CategorizedWorkerPool. When CategorizedWorkerPoolThread is waiting for more tasks, it looks like it is hung as it starts working only after the related condition variable is signaled. Adding heartbeat trace can help detect whether thread is live or not. The category for trace is purposefully kept different "heartbeat", so as to capture traces for long duration. BUG=618262

Patch Set 1 #

Total comments: 8

Patch Set 2 : feedback #

Patch Set 3 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -5 lines) Patch
M base/synchronization/condition_variable.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/synchronization/condition_variable_posix.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M base/synchronization/condition_variable_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M base/synchronization/condition_variable_win.cc View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/categorized_worker_pool.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/categorized_worker_pool.cc View 1 2 chunks +14 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 11 (5 generated)
prashant.n
ptal.
4 years, 6 months ago (2016-06-07 09:56:55 UTC) #2
robliao
https://codereview.chromium.org/2047433004/diff/1/base/synchronization/condition_variable.h File base/synchronization/condition_variable.h (right): https://codereview.chromium.org/2047433004/diff/1/base/synchronization/condition_variable.h#newcode97 base/synchronization/condition_variable.h:97: bool TimedWait(const TimeDelta& max_time); Add a unit test to ...
4 years, 6 months ago (2016-06-07 15:40:30 UTC) #5
prashant.n
I'll modify the patch as suggested and will add a unittest. https://codereview.chromium.org/2047433004/diff/1/base/synchronization/condition_variable_win.cc File base/synchronization/condition_variable_win.cc (right): ...
4 years, 6 months ago (2016-06-07 15:49:54 UTC) #6
jam
is there a bug for this? it's not clear to me that this is an ...
4 years, 6 months ago (2016-06-07 22:16:01 UTC) #7
prashant.n
On 2016/06/07 22:16:01, jam wrote: > is there a bug for this? it's not clear ...
4 years, 6 months ago (2016-06-08 03:08:04 UTC) #8
prashant.n
4 years, 6 months ago (2016-06-08 13:37:57 UTC) #11
ptal.

Powered by Google App Engine
This is Rietveld 408576698