Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 21403: Added the simplest call stack sampling and call profile in tick processor output. (Closed)

Created:
11 years, 10 months ago by Mikhail Naganov
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added the simplest call stack sampling and call profile in tick processor output. Currently only two stack frames are sampled (current function and its caller). Output of tick processor looks like this: [Call profile]: total call path 15.2% LazyCompile: am3 crypto.js:108 <- LazyCompile: montReduce crypto.js:583 6.5% LazyCompile: am3 crypto.js:108 <- LazyCompile: bnpSquareTo crypto.js:431 2.9% Builtin: KeyedStoreIC_Generic <- LazyCompile: montReduce crypto.js:583 2.3% LazyCompile: am3 crypto.js:108 <- LazyCompile: bnpMultiplyTo crypto.js:415 Tested under Windows, Linux and OS X.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Updated according to Soren's comments #

Patch Set 3 : Fixed comments #

Total comments: 4

Patch Set 4 : Fixed casts #

Patch Set 5 : Merged after Soren's changes to logging #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -24 lines) Patch
M src/log.cc View 1 2 3 4 5 chunks +26 lines, -6 lines 0 comments Download
M src/platform.h View 1 1 chunk +20 lines, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/platform-linux.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/platform-macos.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/tickprocessor.py View 7 chunks +60 lines, -17 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Mikhail Naganov
11 years, 10 months ago (2009-02-17 10:04:16 UTC) #1
Søren Thygesen Gjesse
I like this change very much as it will make a good foundation for both ...
11 years, 10 months ago (2009-02-17 11:29:24 UTC) #2
Mikhail Naganov
http://codereview.chromium.org/21403/diff/1/4 File src/platform-all.cc (right): http://codereview.chromium.org/21403/diff/1/4#newcode65 Line 65: // than 10,000 butes are bogus On 2009/02/17 ...
11 years, 10 months ago (2009-02-17 14:07:28 UTC) #3
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/21403/diff/31/32 File src/log.cc (right): http://codereview.chromium.org/21403/diff/31/32#newcode866 Line 866: fprintf(logfile_, ",0x%x", (unsigned int)(sample->stack[i])); Please use reinterpret_cast<unsigned ...
11 years, 10 months ago (2009-02-17 14:14:50 UTC) #4
Mikhail Naganov
11 years, 10 months ago (2009-02-17 14:22:41 UTC) #5
Submitting...

Do we need to update tickprocessor.py on the CB machines manually?

http://codereview.chromium.org/21403/diff/31/32
File src/log.cc (right):

http://codereview.chromium.org/21403/diff/31/32#newcode866
Line 866: fprintf(logfile_, ",0x%x", (unsigned int)(sample->stack[i]));
On 2009/02/17 14:14:50, Søren Gjesse wrote:
> Please use reinterpret_cast<unsigned int>(...).

Done.

http://codereview.chromium.org/21403/diff/31/32#newcode960
Line 960: ticker_ = new Ticker(10, (unsigned int)&stack_var);
On 2009/02/17 14:14:50, Søren Gjesse wrote:
> Please use reinterpret_cast<unsigned int>(...).

Done.

Powered by Google App Engine
This is Rietveld 408576698