[profiler] Move HEAP_START and HEAP_EVENTS to happen outside of heap shots.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Jun 2017 23:26:07 +0000 (16:26 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 14 Jun 2017 21:53:59 +0000 (14:53 -0700)
commitc23173ee4b1383519c6b0188ff3403a5917a888f
tree7691ee54017f5b6447d69691f3cc03f984ae2900
parent258efac3c609274683a35e3f60e1934402be6c22
[profiler] Move HEAP_START and HEAP_EVENTS to happen outside of heap shots.

They now are produced every time a GC spills heap events such as roots, moves and objects.

Additionally, I changed GC syncpoints to happen in case any GC events are active.
It's a safer choice with little penalty. Figuring out the actual combinations that would require them is non-trivial.
mono/profiler/log.c