New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 691027 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 698266



Sign in to add a comment

Memory-infra heap profiler: WorkerPool threads should be grouped together in the stack

Project Member Reported by primiano@chromium.org, Feb 10 2017

Issue description

Background context: go/memory-infra

Just realized a drawback of having Thread names as roots of the heap profiler stack: tasks from WorkerPool gets fragmented into each individual thread of the pool. 
See attached screenshot.

That case, specifically, is not ideal. There is little value in separating the threads of the workerpool (while I share the usefulness of separating the threads in general).

Can we do something special for WorkerPool and just call it [WorkerPool] and not [WorkerPool/1234] ?


 
Screen Shot 2017-02-10 at 6.58.38 PM.png
101 KB View Download
Labels: -Pri-2 Pri-3

Comment 2 by ssid@chromium.org, Feb 10 2017

Owner: ssid@chromium.org
I can remove the numbers from thread names. Will give it a try

Comment 3 by dskiba@chromium.org, Feb 10 2017

Yes, I remember someone complained about it too.

I really want to fix how we deal with thread names. Especially the bit where we go do prctl(PR_GET_NAME) and end up with truncated name on Android.

Comment 4 by ssid@chromium.org, Feb 10 2017

https://codereview.chromium.org/2683913002/ will fix some thread name issues and start profiling earlier. So, prctl will be used rarely. Lets try to debug more after that is fixed.

Comment 5 by dskiba@chromium.org, Feb 10 2017

Yeah sure.

It's just the whole thread name thing is very hacky now. I would prefer something cleaner, which would require more cooperation from ThreadNameManager, pools, etc.
Blocking: 698266
Status: Assigned (was: Untriaged)

Sign in to add a comment