Description[Telemetry] Add the ability to flush the system file cache to platform.
The cold startup test will use this to flush Chrome and its profile from
the OS cache. There are two ways of flushing the cache: flush everything
or flush specific files. The latter is done using clear_system_cache,
which was checked in earlier. However, there are pros and cons to each
approach.
On Windows, clear_system_cache works well, so we prefer that. Clearing
the entire cache requires privelege escalation and a third-party
utility.
On Linux, clear_system_cache works well. Clearing the entire cache
requires root.
On Mac, clear_system_cache only seems to partially flush the cache.
That's not good enough. Fortunately, flushing the entire cache works
and can be done without escalated priveleges.
Android flushes the whole cache with escalated priveleges.
To decide which method to use. Each platform must implement
CanFlushIndividualFilesFromSystemCache().
Currently, flushing is unimplemented on CrOS. I will add
it when I get an environment set up.
BUG=None
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214617
Patch Set 1 #
Total comments: 12
Patch Set 2 : Split CrOS from Linux #
Total comments: 2
Patch Set 3 : Support Android #
Total comments: 1
Patch Set 4 : Simpler Android support #Messages
Total messages: 12 (0 generated)
|