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

Issue 1300033002: Fix compiler stats (Closed)

Created:
5 years, 4 months ago by hausner
Modified:
5 years, 3 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix compiler stats Prints the stats into a zone-allocated string that can either be dumped to the console, or displayed as a whole in the observatory. Distinguish token consumption between class parsing and function parsing when compiling. Change stat counter macros use thread instead of isolate. Committed: https://github.com/dart-lang/sdk/commit/d3a2f619bba1a379c28d47132ad92ca9350f677f

Patch Set 1 #

Patch Set 2 : Remove Metric #

Patch Set 3 : patchy #

Patch Set 4 : ttt #

Patch Set 5 : ppppp #

Patch Set 6 : Remove dead code in parser #

Total comments: 2

Patch Set 7 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -162 lines) Patch
M runtime/vm/compiler.cc View 1 2 3 4 5 6 2 chunks +13 lines, -4 lines 0 comments Download
M runtime/vm/compiler_stats.h View 1 2 2 chunks +19 lines, -12 lines 0 comments Download
M runtime/vm/compiler_stats.cc View 1 2 3 4 5 6 5 chunks +97 lines, -62 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 10 chunks +13 lines, -16 lines 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 5 6 3 chunks +1 line, -6 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 8 chunks +13 lines, -54 lines 0 comments Download
M runtime/vm/scanner.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
hausner
John, could you please take a look and let me know which metrics you want ...
5 years, 4 months ago (2015-08-18 23:47:28 UTC) #2
Cutch
On 2015/08/18 23:47:28, hausner wrote: > John, could you please take a look and let ...
5 years, 4 months ago (2015-08-20 21:35:04 UTC) #3
hausner
Making every stat counter a metric is very heavyweight. The mechanism is quite baroque and ...
5 years, 3 months ago (2015-08-27 18:31:00 UTC) #4
hausner
5 years, 3 months ago (2015-09-01 18:05:56 UTC) #6
Ivan Posva
LGTMwC -Ivan https://codereview.chromium.org/1300033002/diff/100001/runtime/vm/compiler_stats.cc File runtime/vm/compiler_stats.cc (right): https://codereview.chromium.org/1300033002/diff/100001/runtime/vm/compiler_stats.cc#newcode94 runtime/vm/compiler_stats.cc:94: static void PrintToStats(const char* format, ...) { ...
5 years, 3 months ago (2015-09-04 19:22:59 UTC) #7
hausner
Committed patchset #7 (id:120001) manually as d3a2f619bba1a379c28d47132ad92ca9350f677f (presubmit successful).
5 years, 3 months ago (2015-09-04 20:14:13 UTC) #8
hausner
5 years, 3 months ago (2015-09-04 20:45:20 UTC) #9
Message was sent while issue was closed.
Thank you.

https://codereview.chromium.org/1300033002/diff/100001/runtime/vm/compiler_st...
File runtime/vm/compiler_stats.cc (right):

https://codereview.chromium.org/1300033002/diff/100001/runtime/vm/compiler_st...
runtime/vm/compiler_stats.cc:94: static void PrintToStats(const char* format,
...) {
On 2015/09/04 19:22:59, Ivan Posva wrote:
> Please ensure that format and parameters are valid by using
PRINTF_ATTRIBUTE(1,
> 2).
> Also a comment explaining that this is used to parameterize the Log below
would
> be helpful.

Done.

Powered by Google App Engine
This is Rietveld 408576698