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

Issue 1415923010: Several Tick counter improvements. (Closed)

Created:
5 years, 1 month ago by Tim H
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, Andrew MacDonald, peah-webrtc, mflodman, henrika_webrtc, noahric
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Several Tick counter improvements. Move logic into cc file Simplify interval calculation Remove unused QUERY_PERFORMANCE_COUNTER windows implementation Remove double divide on each ::Now() invocation on mac Move TickTime and TickInterval funcitons to cc file in prep for refactoring. BUG= R=mflodman@webrtc.org, pbos@webrtc.org Committed: https://crrev.com/4c27e4b62da2047063d88eedfeec3e939fea7843 Cr-Commit-Position: refs/heads/master@{#10661}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Add requested TODOs and remove almost-duplicate tickstomillis implementation. #

Patch Set 3 : Re-add TicksToMillis #

Total comments: 4

Patch Set 4 : Finalize todos & style #

Patch Set 5 : Undo tools change #

Patch Set 6 : Final patchset with just the diffs I want. #

Patch Set 7 : Fixup unittests that always assumed ::Now returned nonzero result. #

Total comments: 2

Patch Set 8 : Remove any assumptions about tick absolute values #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -143 lines) Patch
M webrtc/modules/utility/source/process_thread_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M webrtc/system_wrappers/include/tick_util.h View 1 2 3 4 4 chunks +10 lines, -104 lines 0 comments Download
M webrtc/system_wrappers/source/tick_util.cc View 1 2 3 4 chunks +85 lines, -35 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
Tim H
I'll of course revert the tools change but needed that to get around some presubmit ...
5 years, 1 month ago (2015-10-28 23:05:37 UTC) #2
pbos-webrtc
(Didn't check tools ofc.) Looks good overall, this code has some issues w/r/t thread safety. ...
5 years, 1 month ago (2015-11-03 10:39:32 UTC) #4
Tim H
Thanks for the feedback! On 2015/11/03 10:39:32, pbos-webrtc wrote: > (Didn't check tools ofc.) > ...
5 years, 1 month ago (2015-11-03 23:32:36 UTC) #5
Tim H
In talking with Noah the issue with the millis function actually is with integer divide ...
5 years, 1 month ago (2015-11-04 22:20:52 UTC) #6
pbos-webrtc
let me know when that's ready, please put this TODO at all spots where the ...
5 years, 1 month ago (2015-11-05 17:30:00 UTC) #7
Tim H
https://codereview.webrtc.org/1415923010/diff/40001/webrtc/system_wrappers/source/tick_util.cc File webrtc/system_wrappers/source/tick_util.cc (right): https://codereview.webrtc.org/1415923010/diff/40001/webrtc/system_wrappers/source/tick_util.cc#newcode51 webrtc/system_wrappers/source/tick_util.cc:51: return ticks/ 1000000LL; On 2015/11/05 17:30:00, pbos-webrtc wrote: > ...
5 years, 1 month ago (2015-11-05 19:08:24 UTC) #8
pbos-webrtc
lgtm assuming tools/ revert, no idea why you have to do that one
5 years, 1 month ago (2015-11-05 19:20:40 UTC) #9
mflodman
LGTM
5 years, 1 month ago (2015-11-10 13:10:11 UTC) #11
Tim H
On 2015/11/10 13:10:11, mflodman wrote: > LGTM Made a small unittest fixup and confirmed it ...
5 years, 1 month ago (2015-11-11 22:39:19 UTC) #12
pbos-webrtc
please fix without the sleep, the tests shouldn't assume >0 if >0 isn't the case ...
5 years, 1 month ago (2015-11-12 11:55:41 UTC) #13
noahric
https://codereview.webrtc.org/1415923010/diff/120001/webrtc/modules/utility/source/process_thread_impl_unittest.cc File webrtc/modules/utility/source/process_thread_impl_unittest.cc (right): https://codereview.webrtc.org/1415923010/diff/120001/webrtc/modules/utility/source/process_thread_impl_unittest.cc#newcode254 webrtc/modules/utility/source/process_thread_impl_unittest.cc:254: int64_t start_time = 0; On 2015/11/12 11:55:41, pbos-webrtc wrote: ...
5 years, 1 month ago (2015-11-12 18:10:15 UTC) #15
Tim H
On 2015/11/12 18:10:15, noahric wrote: > https://codereview.webrtc.org/1415923010/diff/120001/webrtc/modules/utility/source/process_thread_impl_unittest.cc > File webrtc/modules/utility/source/process_thread_impl_unittest.cc (right): > > https://codereview.webrtc.org/1415923010/diff/120001/webrtc/modules/utility/source/process_thread_impl_unittest.cc#newcode254 > ...
5 years, 1 month ago (2015-11-12 19:38:20 UTC) #16
Tim H
Committed patchset #8 (id:140001) manually as 4c27e4b62da2047063d88eedfeec3e939fea7843 (presubmit successful).
5 years, 1 month ago (2015-11-16 22:38:03 UTC) #17
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/4c27e4b62da2047063d88eedfeec3e939fea7843 Cr-Commit-Position: refs/heads/master@{#10661}
5 years, 1 month ago (2015-11-16 22:38:08 UTC) #18
thaloun
5 years, 1 month ago (2015-11-17 00:27:07 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.webrtc.org/1450203002/ by thaloun@chromium.org.

The reason for reverting is: Potentially breaks a threading test under DrMemory.
 Rolling back while I investigate..

Powered by Google App Engine
This is Rietveld 408576698