diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 02:43:59 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 02:43:59 +0000 |
commit | baeb657b6b1413efdc5550570c974d846a9a794c (patch) | |
tree | 8dd23f93d57e1b83129ce2c3b92b510e317335d6 /base/platform_file_win.cc | |
parent | 665a40daa5d50574a64ee515b1b736b38aebe81b (diff) | |
download | chromium_src-baeb657b6b1413efdc5550570c974d846a9a794c.zip chromium_src-baeb657b6b1413efdc5550570c974d846a9a794c.tar.gz chromium_src-baeb657b6b1413efdc5550570c974d846a9a794c.tar.bz2 |
Add PlatformFile.UnknownCreateFileErrors histogram
This will tell us exactly which errors CreateFile is
throwing.
BUG=229252
Review URL: https://chromiumcodereview.appspot.com/13953007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193551 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_win.cc')
-rw-r--r-- | base/platform_file_win.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc index a7d3902..b980550 100644 --- a/base/platform_file_win.cc +++ b/base/platform_file_win.cc @@ -8,6 +8,7 @@ #include "base/files/file_path.h" #include "base/logging.h" +#include "base/metrics/sparse_histogram.h" #include "base/threading/thread_restrictions.h" namespace base { @@ -117,6 +118,8 @@ PlatformFile CreatePlatformFileUnsafe(const FilePath& name, *error = PLATFORM_FILE_ERROR_NO_SPACE; break; default: + UMA_HISTOGRAM_SPARSE_SLOWLY("PlatformFile.UnknownCreateFileErrors", + last_error); *error = PLATFORM_FILE_ERROR_FAILED; } } |