Re: Deprecation of NS_NewNamedThread

2020-03-04 Thread Kris Wright
> Is anything like this planned?
Thank you for pointing this out! You're right, there is no debugging
information similar to the thread name available at the moment. We haven't
got any features like this planned but this sounds like something very
useful so I recommend you file a bug for any debug info you want to see
from the thread pool.

On Mon, Mar 2, 2020 at 10:23 PM David Teller  wrote:
>
> That's cool!
>
> I wonder if there is (or will be) a way to somehow preserve the naming
> part of NS_NewNamedThread, which is sometimes precious for debugging,
> i.e. somehow attach to the background thread a debugging information in
> addition to the stack that would let us analyze what the thread was
> attempting to do in case of crash.
>
> Is anything like this planned?
>
> Cheers,
>  David
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Deprecation of NS_NewNamedThread

2020-03-02 Thread David Teller
That's cool!

I wonder if there is (or will be) a way to somehow preserve the naming
part of NS_NewNamedThread, which is sometimes precious for debugging,
i.e. somehow attach to the background thread a debugging information in
addition to the stack that would let us analyze what the thread was
attempting to do in case of crash.

Is anything like this planned?

Cheers,
 David
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Deprecation of NS_NewNamedThread

2020-03-02 Thread Nicholas Alexander
Kris, others working on this,

On Mon, Mar 2, 2020 at 6:51 AM Kris Wright  wrote:

> *tl;dr: To create new one-off threads using NS_NewNamedThread, you need to
> add them to an allowlist. Lots of cases of async work can be done on the
> background thread pool.*
>



I've been watching this progress for a while and I'm thrilled to see it
land.  The proliferation of threads has lots of impacts; the one I know
about impacts performance and the shape of pageload profiles that we see on
mobile.  Thanks for making that a little easier to reason about, now and in
the future!

Nick
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform