diff options
author | jdduke <jdduke@chromium.org> | 2015-01-09 13:01:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-09 21:02:27 +0000 |
commit | 71fc9b28eff22bfe923f1ba08bbe0e62a82f7139 (patch) | |
tree | 957b8d4798e964a1b30c6c73c3350c27b7edf884 /extensions/strings/extensions_strings_hr.xtb | |
parent | 621c7b52a663962eff12bbbc5a455ad705d46fa2 (diff) | |
download | chromium_src-71fc9b28eff22bfe923f1ba08bbe0e62a82f7139.zip chromium_src-71fc9b28eff22bfe923f1ba08bbe0e62a82f7139.tar.gz chromium_src-71fc9b28eff22bfe923f1ba08bbe0e62a82f7139.tar.bz2 |
Use 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
Review URL: https://codereview.chromium.org/846663002
Cr-Commit-Position: refs/heads/master@{#310853}
Diffstat (limited to 'extensions/strings/extensions_strings_hr.xtb')
0 files changed, 0 insertions, 0 deletions