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

Issue 887213002: Subzero: Fix stats collection and output for multithreading. (Closed)

Created:
5 years, 10 months ago by Jim Stichnoth
Modified:
5 years, 10 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Fix stats collection and output for multithreading. Updates of current-function and cumulative stats are done entirely in TLS. At the end, cumulative stats are merged across all threads' TLS into the global cumulative stats. Printing of cumulative stats after every function is removed, since there's very little value from that. It was probably done in the first place just to give partial cumulative information in the face of crashes or assertion failures. BUG= none R=jfb@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=a1dd3cc8fb88cddc7ce823747cba507c8f283b70

Patch Set 1 #

Total comments: 2

Patch Set 2 : Reduce the number of TLS lookups #

Total comments: 4

Patch Set 3 : auto --> ThreadContext * #

Patch Set 4 : Convert CodeStats to x-macros #

Total comments: 4

Patch Set 5 : Use std::array #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -31 lines) Patch
M src/IceGlobalContext.h View 1 2 3 4 5 chunks +49 lines, -24 lines 0 comments Download
M src/IceGlobalContext.cpp View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Jim Stichnoth
5 years, 10 months ago (2015-01-31 02:26:05 UTC) #2
JF
https://codereview.chromium.org/887213002/diff/1/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/887213002/diff/1/src/IceGlobalContext.h#newcode245 src/IceGlobalContext.h:245: ICE_TLS_GET_FIELD(TLS)->StatsCumulative.updateFills(); Can you get the field only once per ...
5 years, 10 months ago (2015-01-31 05:08:24 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/887213002/diff/1/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/887213002/diff/1/src/IceGlobalContext.h#newcode245 src/IceGlobalContext.h:245: ICE_TLS_GET_FIELD(TLS)->StatsCumulative.updateFills(); On 2015/01/31 05:08:24, JF wrote: > Can you ...
5 years, 10 months ago (2015-01-31 05:36:59 UTC) #4
JF
lgtm after the `auto *TLS` fix. x-macros can be separate, if you think it would ...
5 years, 10 months ago (2015-01-31 05:48:38 UTC) #5
Jim Stichnoth
Clang-format seems to be doing a better job these days of x-macros formatting. I should ...
5 years, 10 months ago (2015-01-31 16:42:28 UTC) #6
JF
https://codereview.chromium.org/887213002/diff/60001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/887213002/diff/60001/src/IceGlobalContext.h#newcode72 src/IceGlobalContext.h:72: //#define X(str, tag) Leftover? https://codereview.chromium.org/887213002/diff/60001/src/IceGlobalContext.h#newcode97 src/IceGlobalContext.h:97: uint32_t Stats[CS_NUM]; std::array, ...
5 years, 10 months ago (2015-01-31 17:46:25 UTC) #7
Jim Stichnoth
https://codereview.chromium.org/887213002/diff/60001/src/IceGlobalContext.h File src/IceGlobalContext.h (right): https://codereview.chromium.org/887213002/diff/60001/src/IceGlobalContext.h#newcode72 src/IceGlobalContext.h:72: //#define X(str, tag) On 2015/01/31 17:46:25, JF wrote: > ...
5 years, 10 months ago (2015-01-31 18:32:29 UTC) #8
JF
lgtm
5 years, 10 months ago (2015-01-31 18:38:51 UTC) #9
Jim Stichnoth
5 years, 10 months ago (2015-01-31 18:48:16 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
a1dd3cc8fb88cddc7ce823747cba507c8f283b70 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698