Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5187613258416128: Issue #1234 - Rewrite internals of debug facility (Closed)

Created:
March 12, 2015, 10:47 p.m. by Eric
Modified:
Jan. 5, 2016, 2:09 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue #1234 - Rewrite internals of debug facility Eliminate CString from implementation of debug logging functions. Rewrite the internals as part of this process. Add thread id to accompany the timestamp. Suppressed the prefix on multiple-line log texts. Eliminate dead code and moribund code, including logging to console, non-split debug files. Remove file "Console.h". Removed the distinction between "_ui" and "_thread" log files, which enabled removing tracking of current thread in 'CPluginSettings'. Moved 'GetDataPath()' from "PluginSettings.*" into "PluginDebug.cpp", the only place it was used.

Patch Set 1 : #

Total comments: 11

Patch Set 2 : capitalize a function name #

Total comments: 22

Patch Set 3 : rebase + address comments #

Total comments: 4

Patch Set 4 : small fixes from comment #7 #

Patch Set 5 : rebase to current public tip #

Total comments: 10

Patch Set 6 : rebase only; no other changes #

Patch Set 7 : add virtual destructor to LogText #

Total comments: 2

Patch Set 8 : rebase only #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -399 lines) Patch
M adblockplus.gyp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
R src/plugin/Console.h View 1 chunk +0 lines, -187 lines 0 comments Download
M src/plugin/PluginDebug.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/plugin/PluginDebug.cpp View 1 2 3 4 5 6 3 chunks +240 lines, -172 lines 10 comments Download
M src/plugin/PluginSettings.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -8 lines 0 comments Download
M src/plugin/PluginSettings.cpp View 1 2 3 4 5 6 7 3 chunks +1 line, -25 lines 0 comments Download
M src/plugin/PluginStdAfx.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30
Eric
1) New class 'LogEntry' has a number of interlocking advantages. * It combines both of ...
March 12, 2015, 11:46 p.m. (2015-03-12 23:46:18 UTC) #1
Oleksandr
Looks good overall. Just some suggestions. http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginClass.cpp File src/plugin/PluginClass.cpp (left): http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginClass.cpp#oldcode633 src/plugin/PluginClass.cpp:633: wsprintf(tmp, L"Invoke: %d\n", ...
March 19, 2015, 3:46 a.m. (2015-03-19 03:46:12 UTC) #2
Eric
New patch set to follow. http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginClass.cpp File src/plugin/PluginClass.cpp (left): http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginClass.cpp#oldcode633 src/plugin/PluginClass.cpp:633: wsprintf(tmp, L"Invoke: %d\n", dispidMember); ...
March 19, 2015, 12:56 p.m. (2015-03-19 12:56:35 UTC) #3
Eric
New patch set addresses Oleksandr's comments. Well, at least the one I agreed with. http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginDebug.cpp ...
March 20, 2015, 10:17 a.m. (2015-03-20 10:17:04 UTC) #4
sergei
http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginDebug.cpp#newcode51 src/plugin/PluginDebug.cpp:51: virtual std::string text() =0; This "no spaces" is not ...
March 30, 2015, 1:45 p.m. (2015-03-30 13:45:26 UTC) #5
Eric
Patch set 3 addresses Sergei's comments. http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): http://codereview.adblockplus.org/5187613258416128/diff/5668600916475904/src/plugin/PluginDebug.cpp#newcode51 src/plugin/PluginDebug.cpp:51: virtual std::string text() ...
March 31, 2015, 3:42 p.m. (2015-03-31 15:42:21 UTC) #6
sergei
http://codereview.adblockplus.org/5187613258416128/diff/5717271485874176/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): http://codereview.adblockplus.org/5187613258416128/diff/5717271485874176/src/plugin/PluginDebug.cpp#newcode61 src/plugin/PluginDebug.cpp:61: LogTextFixed(std::string text) On 2015/03/31 15:42:22, Eric wrote: > On ...
April 2, 2015, 7:41 a.m. (2015-04-02 07:41:12 UTC) #7
Eric
http://codereview.adblockplus.org/5187613258416128/diff/5717271485874176/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): http://codereview.adblockplus.org/5187613258416128/diff/5717271485874176/src/plugin/PluginDebug.cpp#newcode61 src/plugin/PluginDebug.cpp:61: LogTextFixed(std::string text) On 2015/04/02 07:41:12, sergei wrote: > Why ...
May 19, 2015, 3:13 p.m. (2015-05-19 15:13:55 UTC) #8
Eric
New patch set, rebased to the current public tip.
June 28, 2015, 3:36 a.m. (2015-06-28 03:36:52 UTC) #9
Oleksandr
Can you please rebase to the current tip again? Can't apply as it is now.
Oct. 11, 2015, 4:20 p.m. (2015-10-11 16:20:38 UTC) #10
sergei
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; What will happen if we remove ...
Oct. 12, 2015, 12:46 p.m. (2015-10-12 12:46:21 UTC) #11
Eric
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; On 2015/10/12 12:46:20, sergei wrote: > ...
Oct. 13, 2015, 5:33 p.m. (2015-10-13 17:33:20 UTC) #12
Eric
Patch set 6 -- rebase only. No other substantive changes that affect the review Patch ...
Nov. 18, 2015, 12:37 p.m. (2015-11-18 12:37:31 UTC) #13
Oleksandr
LGTM with nit addressed. https://codereview.adblockplus.org/5187613258416128/diff/29330365/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29330365/src/plugin/PluginTabBase.cpp#newcode342 src/plugin/PluginTabBase.cpp:342: CPluginSettings::GetInstance(); Nit: This is a ...
Nov. 25, 2015, 4:42 a.m. (2015-11-25 04:42:31 UTC) #14
Eric
https://codereview.adblockplus.org/5187613258416128/diff/29330365/src/plugin/PluginTabBase.cpp File src/plugin/PluginTabBase.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29330365/src/plugin/PluginTabBase.cpp#newcode342 src/plugin/PluginTabBase.cpp:342: CPluginSettings::GetInstance(); On 2015/11/25 04:42:30, Oleksandr wrote: > Nit: This ...
Nov. 25, 2015, 5:41 p.m. (2015-11-25 17:41:18 UTC) #15
Eric
New patch set is rebase only after recent public commits.
Nov. 26, 2015, 1:05 p.m. (2015-11-26 13:05:35 UTC) #16
sergei
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; On 2015/10/13 17:33:19, Eric wrote: > ...
Nov. 30, 2015, 2:15 p.m. (2015-11-30 14:15:05 UTC) #17
Eric
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; There's only one occurrence of 'CPluginDebugLock', ...
Nov. 30, 2015, 5:39 p.m. (2015-11-30 17:39:02 UTC) #18
sergei
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; On 2015/11/30 17:39:01, Eric wrote: > ...
Nov. 30, 2015, 6:14 p.m. (2015-11-30 18:14:30 UTC) #19
Eric
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; On 2015/11/30 18:14:29, sergei wrote: > ...
Dec. 1, 2015, 8:43 p.m. (2015-12-01 20:43:58 UTC) #20
sergei
https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29321144/src/plugin/PluginDebug.cpp#newcode33 src/plugin/PluginDebug.cpp:33: static CComAutoCriticalSection s_criticalSectionDebugLock; On 2015/12/01 20:43:57, Eric wrote: > ...
Dec. 2, 2015, 1:53 p.m. (2015-12-02 13:53:01 UTC) #21
Eric
https://codereview.adblockplus.org/5187613258416128/diff/29331020/src/plugin/PluginDebug.cpp File src/plugin/PluginDebug.cpp (right): https://codereview.adblockplus.org/5187613258416128/diff/29331020/src/plugin/PluginDebug.cpp#newcode57 src/plugin/PluginDebug.cpp:57: class LogTextFixed On 2015/12/02 13:53:00, sergei wrote: > What ...
Dec. 2, 2015, 3:01 p.m. (2015-12-02 15:01:25 UTC) #22
Eric
It's been almost two weeks since the last action on this review. The only code ...
Dec. 15, 2015, 2:21 p.m. (2015-12-15 14:21:16 UTC) #23
Eric
@sergei, it's now been almost three weeks since any action on this. I sent out ...
Dec. 22, 2015, 12:52 p.m. (2015-12-22 12:52:40 UTC) #24
sergei
On 2015/12/22 12:52:40, Eric wrote: > @sergei, it's now been almost three weeks since any ...
Dec. 22, 2015, 2:27 p.m. (2015-12-22 14:27:07 UTC) #25
Eric
On 2015/12/22 14:27:07, sergei wrote: > I'm waiting for the opinion of others regarding class ...
Dec. 22, 2015, 2:46 p.m. (2015-12-22 14:46:19 UTC) #26
sergei
On 2015/12/22 14:46:19, Eric wrote: > On 2015/12/22 14:27:07, sergei wrote: > > I'm waiting ...
Dec. 22, 2015, 3:56 p.m. (2015-12-22 15:56:58 UTC) #27
Eric
On 2015/12/22 15:56:58, sergei wrote: > OK but I'm pretty sure that everybody should participate ...
Dec. 22, 2015, 5:29 p.m. (2015-12-22 17:29:31 UTC) #28
Oleksandr
The reasoning behind not using Hungarian notation was that we should not aim to have ...
Dec. 23, 2015, 11:06 a.m. (2015-12-23 11:06:55 UTC) #29
sergei
Jan. 5, 2016, 11:53 a.m. (2016-01-05 11:53:24 UTC) #30
LGTM

Powered by Google App Engine
This is Rietveld