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

Unified Diff: sql/connection.h

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Created 4 years, 2 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
Index: sql/connection.h
diff --git a/sql/connection.h b/sql/connection.h
index 5b8d39964ab2aa4e96312b790606c7b0bd0c8b29..d6e4fd1d66dd93cb75527fb0876106604d7c063a 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -28,6 +28,9 @@ struct sqlite3_stmt;
namespace base {
class FilePath;
class HistogramBase;
+namespace trace_event {
+class MemoryAllocatorDump;
+}
}
namespace sql {
@@ -243,6 +246,9 @@ class SQL_EXPORT Connection {
// get diagnostic information about the database.
std::string GetDiagnosticInfo(int extended_error, Statement* statement);
+ // Reports memory usage into provided memory dump.
+ bool ReportMemoryUsage(base::trace_event::MemoryAllocatorDump* mad);
+
// Initialization ------------------------------------------------------------
// Initializes the SQL connection for the given file, returning true if the

Powered by Google App Engine
This is Rietveld 408576698