DescriptionUse ThreadData::Now() for TrackingInfo::time_posted initialization
TrackingInfo::time_posted is only used for task profiling, however, it
is always initialized with TimeTicks::Now(). As TimeTicks::Now() can be
relatively expensive, particularly on Android, instead use
ThreadData::Now(), effectively a no-op when task profiling is disabled.
With task profiling disabled by default on Android, this saves ~1-2us
per task, or ~40% of the fixed cost of task posting.
BUG=417156, 405348
Committed: https://crrev.com/71fc9b28eff22bfe923f1ba08bbe0e62a82f7139
Cr-Commit-Position: refs/heads/master@{#310853}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Stop using time_posted in the TaskQueueManager #Patch Set 3 : Remove unnecessary expectation #
Messages
Total messages: 13 (3 generated)
|