|
Fixit: Fork base::TimeTicks --> TimeTicks + ThreadTicks + TraceTicks
TimeTicks was being overused for time values from three different clock
sources. This change splits the class into three separate classes: The
general-purpose monotonic time (TimeTicks), the thread-local run time
(ThreadTicks), and the global system trace time (TraceTicks). With this
change, the compiler is now able to use type-checking to guarantee
values from different clocks are not being mixed when doing time math.
This is the 2nd in a two-part change. Part 1 factored-out the
comparison and math operator overloads common to base::Time and
base::TimeTicks into a templated base class. The new ThreadTicks and
TraceTicks time classes also inherit from that base class.
Updated base/trace_event/* and a handful of outside-of-base uses of
ThreadNow() and NowFromSystemTraceTime() to use the new classes. A bug
was identified and fixed, in src/ui/gl/angle_platform_impl.cc, where
values from TimeTicks::Now() were being erroneously provided to
base::TraceEvent instead of values from NowFromSystemTraceTime().
BUG= 467417
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
NOTRY=true
Committed: https://crrev.com/1ab506aa9720454e32b815090a3fa3dd8d7145bc
Cr-Commit-Position: refs/heads/master@{#332080}
Total comments: 12
Total comments: 15
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+402 lines, -285 lines) |
Patch |
|
M |
base/message_loop/message_pump_perftest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
base/threading/thread_perftest.cc
|
View
|
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
base/time/time.h
|
View
|
1
2
3
4
5
|
4 chunks |
+122 lines, -55 lines |
0 comments
|
Download
|
|
M |
base/time/time.cc
|
View
|
1
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
base/time/time_mac.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+17 lines, -15 lines |
0 comments
|
Download
|
|
M |
base/time/time_posix.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+23 lines, -29 lines |
0 comments
|
Download
|
|
M |
base/time/time_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
base/time/time_win.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+21 lines, -19 lines |
0 comments
|
Download
|
|
M |
base/time/time_win_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event.h
|
View
|
1
|
14 chunks |
+28 lines, -14 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event_android.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event_impl.h
|
View
|
1
2
3
4
5
6
|
10 chunks |
+16 lines, -16 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event_impl.cc
|
View
|
1
2
3
4
5
6
|
12 chunks |
+24 lines, -24 lines |
0 comments
|
Download
|
|
M |
base/trace_event/trace_event_unittest.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
|
M |
cc/debug/lap_timer.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/debug/lap_timer.cc
|
View
|
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
M |
cc/debug/rendering_stats_instrumentation.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/debug/rendering_stats_instrumentation.cc
|
View
|
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/begin_frame_tracker.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
cc/scheduler/begin_frame_tracker.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
components/tracing/child_trace_message_filter.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
components/tracing/child_trace_message_filter.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
components/tracing/tracing_messages.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/tracing/etw_system_event_consumer_win.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/tracing/trace_message_filter.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/child/blink_platform_impl.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/renderer/devtools/v8_sampling_profiler.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
gpu/perftests/measurements.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
gpu/perftests/measurements.cc
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_utils.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
ipc/ipc_message_utils.cc
|
View
|
1
2
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
ppapi/shared_impl/ppb_trace_event_impl.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/events/latency_info.cc
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/gl/angle_platform_impl.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/gl/gpu_timing.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 37 (11 generated)
|