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)
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.

1  2 
man/mono.1
mono/metadata/profiler.c
mono/profiler/proflog.c

diff --cc man/mono.1
Simple merge
Simple merge
Simple merge