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

Issue 1841213003: Move CompilerStats from isolate to thread. Aggregate stats. (Closed)

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

Description

Move CompilerStats from isolate to thread. Aggregate stats. The mutator thread holds the aggregate values, the background compiler adds its value to it. BUG= R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/1a9fc8b2fa7ea786f155b523abb4a8c7db1a90d6

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : sync #

Patch Set 4 : sync #

Patch Set 5 : Make aggregation atomic #

Patch Set 6 : cleanup #

Total comments: 8

Patch Set 7 : review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -62 lines) Patch
M runtime/vm/atomic.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/atomic_android.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/atomic_linux.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/atomic_macos.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/atomic_win.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/benchmark_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/compiler_stats.h View 1 2 3 4 5 6 4 chunks +57 lines, -7 lines 0 comments Download
M runtime/vm/compiler_stats.cc View 1 2 3 4 3 chunks +59 lines, -33 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/isolate.cc View 4 chunks +1 line, -13 lines 0 comments Download
M runtime/vm/parser.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/thread.h View 3 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 4 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/timer.h View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
srdjan
4 years, 8 months ago (2016-03-30 02:31:44 UTC) #3
siva
One high level comment, why did you choose to do it this way not leave ...
4 years, 8 months ago (2016-03-30 14:24:29 UTC) #5
srdjan
On 2016/03/30 14:24:29, siva wrote: > One high level comment, why did you choose to ...
4 years, 8 months ago (2016-03-30 16:49:02 UTC) #6
hausner
Also, incrementing a stat timer should be light-weight, so you don't want a lock around ...
4 years, 8 months ago (2016-03-30 16:59:20 UTC) #7
srdjan
On 2016/03/30 16:59:20, hausner wrote: > Also, incrementing a stat timer should be light-weight, so ...
4 years, 8 months ago (2016-03-30 17:37:58 UTC) #8
hausner
I don't think the increments of timers (when it stops) and counters is thread safe. ...
4 years, 8 months ago (2016-03-30 19:49:21 UTC) #9
srdjan
https://codereview.chromium.org/1841213003/diff/90001/runtime/vm/atomic.h File runtime/vm/atomic.h (right): https://codereview.chromium.org/1841213003/diff/90001/runtime/vm/atomic.h#newcode29 runtime/vm/atomic.h:29: static void IncrementInt64By(int64_t* p, int64_t value); On 2016/03/30 19:49:20, ...
4 years, 8 months ago (2016-03-30 20:14:04 UTC) #10
hausner
LGTM
4 years, 8 months ago (2016-03-30 20:29:11 UTC) #11
srdjan
4 years, 8 months ago (2016-03-30 20:38:52 UTC) #13
Message was sent while issue was closed.
Committed patchset #7 (id:110001) manually as
1a9fc8b2fa7ea786f155b523abb4a8c7db1a90d6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698