Merge pull request #2816 from xmcclure/profile-clean-0
authormonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 31 Mar 2016 19:05:17 +0000 (20:05 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Thu, 31 Mar 2016 19:05:17 +0000 (20:05 +0100)
commit1c385f99e1c5e5c76e03c49e838ac29739a2e9e2
tree78ebe5672df90b7a4582ace4f22e40e322b362aa
parent58e8a9f85176c9607e605b888ef45db01a0f6997
parenta80b7cc0a3d22dc13f29ddc4858092d998c43c18
Merge pull request #2816 from xmcclure/profile-clean-0

Various cleanups on profiler

3 commits:

Assist on profiler module loading

- Add a MONO_PROFILER_LIB_DIR from which profiler modules are
  dynamically loading, in case it is not the normal library path
- Add information about profiler loading to mono_trace

Comments and clarity in proflog.c

- Add comments on structures
- Rename 'data' and 'data_end' to 'cursor' and 'buf_end' in LogBuffer/StatsBuffer as the old names were confusing
- Add new assert when processing samples

Improve a safety check when writing data into StatBuffer

- The safety check should occur such that if the new value for
StatBuffer::cursor is beyond the bounds of the StatBuffer, the cursor
is not updated.
man/mono.1
mono/metadata/profiler.c
mono/profiler/proflog.c