DescriptionAdd ProcessMetrics::CreateCurrentProcessMetrics() method.
Code that creates a ProcessMetrics object can be confusing because
ProcessMetrics::CreateProcessMetrics() has a different signature on Mac.
The extra Mac parameter isn't required when creating a ProcessMetrics
object for the current process (which is a common thing to do).
To allow simplification of code that creates a ProcessMetrics object
for the current process, this CL introduces a new
ProcessMetrics::CreateCurrentProcessMetrics() method, which has the
same signature on all platforms.
BUG=553266
Committed: https://crrev.com/28787424acfc81f458824812a35c67d461b84035
Cr-Commit-Position: refs/heads/master@{#359199}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Lei Zhang comments #3 (use CreateCurrentProcessMetrics where relevant, nits, comments) #
Total comments: 4
Patch Set 3 : Lei Zhang comments #6 (nits) #Patch Set 4 : Remove patch dependency (oops.... #Patch Set 5 : Remove patch dependency #
Messages
Total messages: 17 (6 generated)
|