[Mono.Profiler.Log] Support MLPD version 13
authorRodrigo Moya <rodrigo.moya@xamarin.com>
Thu, 7 Sep 2017 20:16:13 +0000 (22:16 +0200)
committerRodrigo Moya <rodrigo@gnome.org>
Wed, 13 Sep 2017 23:20:13 +0000 (01:20 +0200)
commit05bd5d300445adabcbc56cc81de383590db37285
treecd3bd1bf6dcefadcd08cf7fbb669b2e3d7d84459
parent2709ca7625d75e5b3cf8eac8a34b95395bd15c46
[Mono.Profiler.Log] Support MLPD version 13

The differences from v14 are small, and given it is the current "stable"
MLPD version, it's worth supporting it. The differences are:

* ImagePointer field not present in v13 Assembly*Event's
* In MonitorEvent, LogMonitorEvent is not in a separate field, but included
  as a flag in the extType field.
* SampleHitEvent's have a type field in v13, which was removed in v14, because
  only cycles samples are emitted.
* MONO_GC_EVENT_{MARK,RECLAIM}_{START,END} were removed in v14
* SampleUnmanagedBinary's SegmentPointer is not based on ptr_base in v13
* In v13, HeapRootsEvent's Attributes is (wrongly) a byte, in v14 this was
  fixed and changed back to a uleb128
mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogEnums.cs
mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs