Mercurial > hg > release > heapstats-2.0
changeset 161:7c73491f8d71
Bug 2999: HeapStats agent should notify when ring buffer is overwritten
Reviewed-by: ykubota
https://github.com/HeapStats/heapstats/pull/33
author | Yasumasa Suenaga <yasuenag@gmail.com> |
---|---|
date | Thu, 06 Oct 2016 18:43:51 +0900 |
parents | ff637d2bf374 |
children | bae08f14b21c |
files | ChangeLog agent/src/heapstats-engines/threadRecorder.cpp |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 14 23:18:08 2016 +0900 +++ b/ChangeLog Thu Oct 06 18:43:51 2016 +0900 @@ -1,3 +1,7 @@ +2016-10-06 Yasumasa Suenaga <yasuenag@gmail.com> + + * Bug 2999: HeapStats agent should notify when ring buffer is overwritten + 2016-09-14 Yasumasa Suenaga <yasuenag@gmail.com> * Bug 3167: Fix incorrect message caused by class unloading in CMS.
--- a/agent/src/heapstats-engines/threadRecorder.cpp Wed Sep 14 23:18:08 2016 +0900 +++ b/agent/src/heapstats-engines/threadRecorder.cpp Thu Oct 06 18:43:51 2016 +0900 @@ -716,6 +716,8 @@ memcpy32(top_of_buffer, &eventRecord); if (unlikely(++top_of_buffer == end_of_buffer)) { + logger->printDebugMsg( + "Ring buffer for Thread Recorder has been rewinded."); top_of_buffer = (TEventRecord *)record_buffer; } }