[profiler] Don't raise events until the profiler transitions to the ready state....
commit7627a5f9eeba0fd846731ad0c498556f55be1a34
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 25 May 2018 17:39:30 +0000 (25 13:39 -0400)
committerMarek Safar <marek.safar@gmail.com>
Thu, 14 Jun 2018 13:01:34 +0000 (14 15:01 +0200)
tree82a9db3faeff4c3bea6f5c0d25b0e5348065bc06
parenta2bed67b6bef1bed79dc347cc8ed147096a07987
[profiler] Don't raise events until the profiler transitions to the ready state. Fixes #8866.

We can't raise event before that as the profiler depends on too much runtime
infrastructure at this point for it to reliably work.

For example, we need the threading infrastructure to be init'd so we can access the
thread-local profiler state to store events there.
mono/metadata/profiler.c