Handle filling up of memory buffer to make log processing in DevTools Profiler easier.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 May 2009 13:56:32 +0000 (13:56 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 May 2009 13:56:32 +0000 (13:56 +0000)
commit795ba99117976f30e49ef9e196b4290a2928e870
tree0999cafc5b9c422f8e23d0f8a02702ec7fa6f5c0
parent8ed81aca8a3b57d52e40a9f8e22c5aa3e6f07a86
Handle filling up of memory buffer to make log processing in DevTools Profiler easier.

When profiler's memory buffer is filled up, profiling is stopped and it is ensured that the last record in the buffer is "profiler,\"pause\"" thus making the end of profiling session explicit. Otherwise DevTools Profiler would need to guess whether the current profiling session has been stopped.

Tested with Chromium.

Review URL: http://codereview.chromium.org/115859

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2072 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/log-utils.cc
src/log-utils.h
src/log.cc
src/log.h
test/cctest/test-log-utils.cc