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

Issue 139103007: Use TimeTicks instead of gettimeofday in ProcessMetrics. (Closed)

Created:
6 years, 11 months ago by Nico
Modified:
6 years, 8 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Use TimeTicks instead of gettimeofday in ProcessMetrics. No real behavior change, but if the user changes their system time there shouldn't be a jump in %cpu for one call. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262059

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : nowall #

Patch Set 5 : reverty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -51 lines) Patch
M base/process/process_metrics.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/process/process_metrics_freebsd.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M base/process/process_metrics_linux.cc View 1 2 3 2 chunks +3 lines, -8 lines 0 comments Download
M base/process/process_metrics_mac.cc View 1 2 3 4 5 chunks +6 lines, -18 lines 0 comments Download
M base/process/process_metrics_openbsd.cc View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M base/process/process_metrics_win.cc View 3 4 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Nico
6 years, 11 months ago (2014-01-23 19:33:50 UTC) #1
Mark Mentovai
https://codereview.chromium.org/139103007/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/139103007/diff/60001/base/process/process_metrics.h#newcode208 base/process/process_metrics.h:208: TimeTicks last_cpu_walltime_; This (and line 212) aren’t “wall time” ...
6 years, 11 months ago (2014-01-23 19:38:00 UTC) #2
Nico
https://codereview.chromium.org/139103007/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/139103007/diff/60001/base/process/process_metrics.h#newcode208 base/process/process_metrics.h:208: TimeTicks last_cpu_walltime_; On 2014/01/23 19:38:01, Mark Mentovai wrote: > ...
6 years, 11 months ago (2014-01-23 19:40:50 UTC) #3
Mark Mentovai
The Chrome type for this is TimeTicks. _ticks is the best name.
6 years, 11 months ago (2014-01-23 19:42:30 UTC) #4
Nico
last_cpu_ticks_ doesn't make me think of a time, but of a cpu instruction count. *shrug* ...
6 years, 11 months ago (2014-01-23 19:45:28 UTC) #5
Mark Mentovai
Then we shouldn’t have named the type TimeTicks.
6 years, 11 months ago (2014-01-23 19:47:31 UTC) #6
Nico
Most of the time it's not used to measure something cpu related :-) On Thu, ...
6 years, 11 months ago (2014-01-23 19:48:07 UTC) #7
Mark Mentovai
OK, so then: last_cpu_ticks_ last_cpu_time_ (no change from current name) last_cpu_, and rename the current ...
6 years, 11 months ago (2014-01-23 19:49:05 UTC) #8
Nico
On Thu, Jan 23, 2014 at 11:49 AM, <mark@chromium.org> wrote: > OK, so then: > ...
6 years, 11 months ago (2014-01-23 19:52:44 UTC) #9
Mark Mentovai
t{ime,icks}_at_last_X_measurement_ or something that clarifies that we don’t really care about counting the ticks? On ...
6 years, 11 months ago (2014-01-23 19:53:54 UTC) #10
Mark Mentovai
Nico wrote: > Well, I obviously disagree. The first sounds like "cpu ticks", the second ...
6 years, 11 months ago (2014-01-23 19:55:04 UTC) #11
Nico
Sorry, wanted to let this CL sit a day and then forgot about it. I ...
6 years, 8 months ago (2014-04-06 00:46:30 UTC) #12
Mark Mentovai
LGTM. “You're unhappy. I'm unhappy too. Have you heard of Henry Clay? He was the ...
6 years, 8 months ago (2014-04-06 01:29:29 UTC) #13
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 8 months ago (2014-04-06 18:55:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/139103007/220001
6 years, 8 months ago (2014-04-06 18:55:14 UTC) #15
commit-bot: I haz the power
6 years, 8 months ago (2014-04-06 21:25:07 UTC) #16
Message was sent while issue was closed.
Change committed as 262059

Powered by Google App Engine
This is Rietveld 408576698