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

Issue 2632643004: Remove WTFReportAssertionFailure and WTFReportBacktrace. (Closed)

Created:
3 years, 11 months ago by Wez
Modified:
3 years, 10 months ago
Reviewers:
tkent, esprehn, dcheng
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove WTFReportAssertionFailure and WTFReportBacktrace. WTF assertion macros are now alised to their base/ counterparts, so these functions are no longer used. BUG=596760 Review-Url: https://codereview.chromium.org/2632643004 Cr-Commit-Position: refs/heads/master@{#446937} Committed: https://chromium.googlesource.com/chromium/src/+/73f8d7ec73f5ff5f7fd7a24862aef82f73f103e7

Patch Set 1 #

Patch Set 2 : Add Truncate() helper #

Total comments: 2

Patch Set 3 : Provide truncating constructor, and make kMaxTraces protected #

Patch Set 4 : Add missing include #

Total comments: 4

Patch Set 5 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -107 lines) Patch
M base/debug/stack_trace.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M base/debug/stack_trace.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M base/debug/stack_trace_android.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M base/debug/stack_trace_posix.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M base/debug/stack_trace_unittest.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M base/debug/stack_trace_win.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/Assertions.h View 1 2 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/Assertions.cpp View 3 chunks +0 lines, -85 lines 0 comments Download

Messages

Total messages: 53 (26 generated)
Wez
PTAL
3 years, 11 months ago (2017-01-13 21:22:33 UTC) #5
esprehn
I think the format that WTF used was a much prettier unmangled trace IIRC? Can ...
3 years, 11 months ago (2017-01-13 22:06:28 UTC) #8
Wez
When I tried calling ASSERT to crash some unit-tests I found that [under Linux Debug ...
3 years, 11 months ago (2017-01-14 00:14:28 UTC) #11
Wez
When I tried calling ASSERT to crash some unit-tests I found that [under Linux Debug ...
3 years, 11 months ago (2017-01-14 00:14:28 UTC) #12
Wez
On 2017/01/14 00:14:28, Wez wrote: > When I tried calling ASSERT to crash some unit-tests ...
3 years, 11 months ago (2017-01-14 03:03:05 UTC) #13
Wez
FWIW Chromium base/ uses third_party/symbolize to symbolize & unmangle names, while WTFReportBacktrace, and Chromium built ...
3 years, 11 months ago (2017-01-14 03:16:33 UTC) #16
Wez
tkent: Ping esprehn: As noted above, I'm unable to repro any pretty traceback functionality from ...
3 years, 11 months ago (2017-01-20 20:11:48 UTC) #19
tkent
On 2017/01/20 at 20:11:48, wez wrote: > esprehn: As noted above, I'm unable to repro ...
3 years, 11 months ago (2017-01-23 00:08:42 UTC) #20
Wez
OK, as of https://codereview.chromium.org/2651893002/ we have symbolizing & demangling working again on Mac OS X. ...
3 years, 10 months ago (2017-01-26 22:31:40 UTC) #21
esprehn
lgtm https://codereview.chromium.org/2632643004/diff/20001/base/debug/stack_trace.h File base/debug/stack_trace.h (right): https://codereview.chromium.org/2632643004/diff/20001/base/debug/stack_trace.h#newcode72 base/debug/stack_trace.h:72: StackTrace Truncate(size_t max_entries) const; This does mean we ...
3 years, 10 months ago (2017-01-26 22:55:45 UTC) #23
tkent
lgtm
3 years, 10 months ago (2017-01-27 00:37:23 UTC) #24
Wez
https://codereview.chromium.org/2632643004/diff/20001/base/debug/stack_trace.h File base/debug/stack_trace.h (right): https://codereview.chromium.org/2632643004/diff/20001/base/debug/stack_trace.h#newcode72 base/debug/stack_trace.h:72: StackTrace Truncate(size_t max_entries) const; On 2017/01/26 22:55:45, esprehn wrote: ...
3 years, 10 months ago (2017-01-27 01:29:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632643004/20001
3 years, 10 months ago (2017-01-27 01:31:11 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/351668)
3 years, 10 months ago (2017-01-27 01:45:08 UTC) #29
Wez
+dcheng for base/OWNERS for StackTrace changes.
3 years, 10 months ago (2017-01-27 01:48:15 UTC) #31
dcheng
It seems like Truncate() is only used by the test in //base? Am I missing ...
3 years, 10 months ago (2017-01-27 09:15:24 UTC) #32
esprehn
On 2017/01/27 at 09:15:24, dcheng wrote: > It seems like Truncate() is only used by ...
3 years, 10 months ago (2017-01-27 09:21:57 UTC) #33
dcheng
Hmm. What do you think about just adding a size_t max_entries argument to Print() / ...
3 years, 10 months ago (2017-01-27 19:09:00 UTC) #34
esprehn
On 2017/01/27 at 19:09:00, dcheng wrote: > Hmm. What do you think about just adding ...
3 years, 10 months ago (2017-01-27 19:32:49 UTC) #35
Wez
I'm fine with adding a parameter to Print() and/or ToString(). As Elliott previously mentioned, we ...
3 years, 10 months ago (2017-01-27 19:40:05 UTC) #36
Wez
I'm fine with adding a parameter to Print() and/or ToString(). As Elliott previously mentioned, we ...
3 years, 10 months ago (2017-01-27 19:40:05 UTC) #37
Wez
OK, I've added a |count| parameter to StackTrace().
3 years, 10 months ago (2017-01-27 21:51:31 UTC) #42
esprehn
lgtm
3 years, 10 months ago (2017-01-27 23:16:14 UTC) #43
dcheng
lgtm https://codereview.chromium.org/2632643004/diff/60001/base/debug/stack_trace.h File base/debug/stack_trace.h (right): https://codereview.chromium.org/2632643004/diff/60001/base/debug/stack_trace.h#newcode57 base/debug/stack_trace.h:57: // |count| will be trimmed to |kMaxTraces|. Nit: ...
3 years, 10 months ago (2017-01-28 01:00:34 UTC) #44
Wez
https://codereview.chromium.org/2632643004/diff/60001/base/debug/stack_trace.h File base/debug/stack_trace.h (right): https://codereview.chromium.org/2632643004/diff/60001/base/debug/stack_trace.h#newcode57 base/debug/stack_trace.h:57: // |count| will be trimmed to |kMaxTraces|. On 2017/01/28 ...
3 years, 10 months ago (2017-01-29 04:25:01 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2632643004/80001
3 years, 10 months ago (2017-01-29 04:25:10 UTC) #50
commit-bot: I haz the power
3 years, 10 months ago (2017-01-29 06:19:37 UTC) #53
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/73f8d7ec73f5ff5f7fd7a24862ae...

Powered by Google App Engine
This is Rietveld 408576698