|
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.
Committed: http://code.google.com/p/v8/source/detail?r=2067
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+608 lines, -308 lines) |
Patch |
|
M |
src/SConscript
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/log.cc
|
View
|
|
2 chunks |
+1 line, -298 lines |
0 comments
|
Download
|
|
A |
src/log-utils.h
|
View
|
|
1 chunk |
+188 lines, -0 lines |
2 comments
|
Download
|
|
A |
src/log-utils.cc
|
View
|
|
1 chunk |
+265 lines, -0 lines |
4 comments
|
Download
|
|
M |
test/cctest/SConscript
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-log.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
test/cctest/test-log-utils.cc
|
View
|
|
1 chunk |
+108 lines, -0 lines |
2 comments
|
Download
|
|
M |
tools/gyp/v8.gyp
|
View
|
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
tools/v8.xcodeproj/project.pbxproj
|
View
|
|
5 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/visual_studio/v8_base.vcproj
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/visual_studio/v8_base_arm.vcproj
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/visual_studio/v8_cctest.vcproj
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/visual_studio/v8_cctest_arm.vcproj
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|