DescriptionAdd TRACE_COUNTER_WITH_TIMESTAMPx macros.
base::ProcessMetrics::GetCPUUsage() gives access to the % of CPU usage
for the current process in the time interval [a, b], where a is the
timestamp of the previous call to the method and b is the current
timestamp.
In order to display a correct CPU usage graph in about:tracing from the
values returned by base::ProcessMetrics::GetCPUUsage(), we need a way
to emit a counter event with timestamp |b| when we read the CPU usage at
timestamp |a|.
This CL introduces 2 TRACE_COUNTER_WITH_TIMESTAMPx macros that can emit
a counter event with a custom timestamp.
BUG=553266
Committed: https://crrev.com/6b5d01a9e568040f653dd8e4e13f69d08d49af91
Cr-Commit-Position: refs/heads/master@{#361807}
Patch Set 1 #Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : change order or macro args #
Messages
Total messages: 20 (9 generated)
|