Reviewers: Søren Gjesse,

Description:
Implement a dynamically growing memory log buffer with an upper limit.

The goal of this change is to allow longer profiling sessions and
preserve memory when profiler isn't started. The buffer starts with 64K
and grows until it reaches the upper limit, which is currently set to
50MB --- according to my evaluations, this is enough for at least 20
minutes of GMail profiling. As we're planning to introduce compression
for the profiler log, this time boundary will be significantly increased
soon.

To make possible unit testing of the new component, I've factored out
Logger's utility classes into a separate source file: log-utils.h/cc.
Log and LogMessageBuilder are moved there from log.cc without any
semantical changes.

Please review this at http://codereview.chromium.org/115814

Affected files:
   M src/SConscript
   A src/log-utils.h
   A src/log-utils.cc
   M src/log.cc
   M test/cctest/SConscript
   A test/cctest/test-log-utils.cc
   M test/cctest/test-log.cc
   M tools/gyp/v8.gyp
   M tools/v8.xcodeproj/project.pbxproj
   M tools/visual_studio/v8_base.vcproj
   M tools/visual_studio/v8_base_arm.vcproj
   M tools/visual_studio/v8_cctest.vcproj
   M tools/visual_studio/v8_cctest_arm.vcproj



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to