|
[Interpreter] Add support for cpu profiler logging.
Adds support for cpu profiler logging to the interpreter. Modifies the
the API to be passed AbstractCode objects instead of Code objects, and
adds extra functions to AbstractCode which is required by log.cc and
cpu-profiler.cc.
The main change in sampler.cc is to determine if a stack frame is an
interpreter stack frame, and if so, use the bytecode address as the pc
for that frame. This allows sampling of bytecode functions. This
requires adding support to SafeStackIterator to determine if a frame is
interpreted, which we do by checking the PC against pre-stored addresses
for the start and end of interpreter entry builtins.
Also removes CodeDeleteEvents which are dead code and haven't
been reported for some time.
Still to do is tracking source positions which will be done in a
followup CL.
BUG= v8:4766
LOG=N
Committed: https://crrev.com/cb29f9cdbceace4e8ea3a9701e421acea3ff9c6d
Cr-Commit-Position: refs/heads/master@{#34321}
Total comments: 1
Total comments: 8
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+439 lines, -470 lines) |
Patch |
|
M |
src/builtins.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/code-stubs.cc
|
View
|
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler.h
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
1
2
3
|
4 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/compiler/code-generator.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/wasm-compiler.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/crankshaft/lithium.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/frames.cc
|
View
|
1
2
3
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/full-codegen/full-codegen.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/heap/mark-compact.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/heap/spaces.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/ic/handler-compiler.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/ic/ic-compiler.cc
|
View
|
3
|
6 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/log.h
|
View
|
1
2
|
4 chunks |
+50 lines, -72 lines |
0 comments
|
Download
|
|
M |
src/log.cc
|
View
|
1
2
3
|
30 chunks |
+119 lines, -197 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
3
|
3 chunks |
+35 lines, -1 line |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
1
2
3
|
4 chunks |
+55 lines, -1 line |
0 comments
|
Download
|
|
M |
src/profiler/cpu-profiler.h
|
View
|
1
2
|
2 chunks |
+23 lines, -24 lines |
0 comments
|
Download
|
|
M |
src/profiler/cpu-profiler.cc
|
View
|
1
2
|
8 chunks |
+31 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/profiler/profile-generator.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/profiler/sampler.cc
|
View
|
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/arm/regexp-macro-assembler-arm.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/arm64/regexp-macro-assembler-arm64.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/ia32/regexp-macro-assembler-ia32.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/mips/regexp-macro-assembler-mips.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/mips64/regexp-macro-assembler-mips64.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/ppc/regexp-macro-assembler-ppc.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/x64/regexp-macro-assembler-x64.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/regexp/x87/regexp-macro-assembler-x87.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/runtime/runtime-function.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/snapshot/serialize.cc
|
View
|
1
2
|
3 chunks |
+8 lines, -10 lines |
0 comments
|
Download
|
|
M |
test/cctest/cctest.status
|
View
|
1
2
3
|
2 chunks |
+0 lines, -27 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-cpu-profiler.cc
|
View
|
|
10 chunks |
+21 lines, -27 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-log.cc
|
View
|
1
2
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-log-stack-tracer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/cctest/test-profile-generator.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tools/ll_prof.py
|
View
|
1
2
|
2 chunks |
+0 lines, -14 lines |
0 comments
|
Download
|
Depends on Patchset:
Dependent Patchsets:
Total messages: 40 (17 generated)
|