diff options
Diffstat (limited to 'base/files/file.cc')
-rw-r--r-- | base/files/file.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/files/file.cc b/base/files/file.cc index 1b2224e323..ab05630062 100644 --- a/base/files/file.cc +++ b/base/files/file.cc @@ -138,4 +138,12 @@ std::string File::ErrorToString(Error error) { return ""; } +bool File::Flush() { + ElapsedTimer timer; + SCOPED_FILE_TRACE("Flush"); + bool return_value = DoFlush(); + UMA_HISTOGRAM_TIMES("PlatformFile.FlushTime", timer.Elapsed()); + return return_value; +} + } // namespace base |