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

Issue 42020: - Added ability to call histograms from within v8... (Closed)

Created:
11 years, 9 months ago by DaveMoore
Modified:
9 years, 7 months ago
Reviewers:
iposva, Dean McNamee
CC:
v8-dev
Visibility:
Public.

Description

- Added ability to call histograms from within v8 - Changed the StatsRates to use the new HistogramTimers Committed: http://code.google.com/p/v8/source/detail?r=1510

Patch Set 1 #

Total comments: 15

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -57 lines) Patch
M include/v8.h View 1 2 4 chunks +18 lines, -2 lines 0 comments Download
M src/api.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M src/compiler.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/counters.h View 1 2 3 chunks +67 lines, -27 lines 0 comments Download
M src/counters.cc View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M src/v8-counters.h View 1 2 3 chunks +15 lines, -15 lines 0 comments Download
M src/v8-counters.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
DaveMoore
My last changeset got messed up on my drive (bad svn entries file). So I've ...
11 years, 9 months ago (2009-03-10 16:25:30 UTC) #1
iposva
Many comments about comments, but otherwise LGTM. -Ivan http://codereview.chromium.org/42020/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/42020/diff/1/2#newcode1916 Line 1916: ...
11 years, 9 months ago (2009-03-10 23:34:23 UTC) #2
DaveMoore
http://codereview.chromium.org/42020/diff/1/2 File include/v8.h (right): http://codereview.chromium.org/42020/diff/1/2#newcode1916 Line 1916: static void SetAddHistogramSampleFunction(AddHistogramSampleCallback); On 2009/03/10 23:34:23, iposva wrote: ...
11 years, 9 months ago (2009-03-11 14:19:56 UTC) #3
Dean McNamee
http://codereview.chromium.org/42020/diff/1011/1020 File src/v8-counters.cc (right): http://codereview.chromium.org/42020/diff/1011/1020#newcode35 Line 35: HistogramTimer Counters::name = { "" #caption, NULL, false, ...
11 years, 9 months ago (2009-03-11 16:42:24 UTC) #4
DaveMoore
11 years, 9 months ago (2009-03-12 16:09:29 UTC) #5
http://codereview.chromium.org/42020/diff/1/7
File src/counters.h (right):

http://codereview.chromium.org/42020/diff/1/7#newcode179
Line 179: // HistogramTimer t = { L"t:foo", NULL, false };
On 2009/03/10 23:34:23, iposva wrote:
> Histograms are not created with a "t:" prefix as far as I can tell.

Done.

http://codereview.chromium.org/42020/diff/1/7#newcode196
Line 196: return histogram_ != NULL && start_time_ != 0 && stop_time_ == 0;
On 2009/03/10 23:34:23, iposva wrote:
> Usually we try to not rely on C precedence rules and format conditions in this
> way: (a != b) && (b == c)

Done.

http://codereview.chromium.org/42020/diff/1011/1020
File src/v8-counters.cc (right):

http://codereview.chromium.org/42020/diff/1011/1020#newcode35
Line 35: HistogramTimer Counters::name = { "" #caption, NULL, false, 0, 0 }; \
On 2009/03/11 16:42:24, Dean McNamee wrote:
> You don't need the "" here do you?

Done.

Powered by Google App Engine
This is Rietveld 408576698