Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: third_party/leveldatabase/env_chromium.h

Issue 2858133002: Add uma stats to help evaluate the impact of changes to the quota allocation logic. (Closed)
Patch Set: macros Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/common/storage_histograms.cc ('k') | third_party/leveldatabase/env_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/env_chromium.h
diff --git a/third_party/leveldatabase/env_chromium.h b/third_party/leveldatabase/env_chromium.h
index d2e5b83111c79974c2b93622dedf2ec8aaf0eb8c..d4335810b24496abaf1835a01ada393d9bdbbc43 100644
--- a/third_party/leveldatabase/env_chromium.h
+++ b/third_party/leveldatabase/env_chromium.h
@@ -111,6 +111,8 @@ class UMALogger {
virtual void RecordErrorAt(MethodID method) const = 0;
virtual void RecordOSError(MethodID method,
base::File::Error error) const = 0;
+ virtual void RecordBytesRead(int amount) const = 0;
+ virtual void RecordBytesWritten(int amount) const = 0;
};
class RetrierProvider {
@@ -166,9 +168,10 @@ class ChromiumEnv : public leveldb::Env,
static const char* FileErrorString(base::File::Error error);
private:
- virtual void RecordErrorAt(MethodID method) const;
- virtual void RecordOSError(MethodID method,
- base::File::Error error) const;
+ void RecordErrorAt(MethodID method) const override;
+ void RecordOSError(MethodID method, base::File::Error error) const override;
+ void RecordBytesRead(int amount) const override;
+ void RecordBytesWritten(int amount) const override;
void RecordOpenFilesLimit(const std::string& type);
base::HistogramBase* GetMaxFDHistogram(const std::string& type) const;
base::HistogramBase* GetOSErrorHistogram(MethodID method, int limit) const;
« no previous file with comments | « storage/common/storage_histograms.cc ('k') | third_party/leveldatabase/env_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698