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

Unified Diff: sql/connection.h

Issue 2452713003: [Sync] Implement MemoryDumpProvider. (Closed)
Patch Set: Fix presumit; fix Windows; git cl format Created 4 years, 1 month 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 | « components/sync/syncable/syncable_id.h ('k') | sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.h
diff --git a/sql/connection.h b/sql/connection.h
index 0fb251dd8cc701b5f6a976f7a5851e3baa1549d6..20ea3cd5101b199f20be8c143403bec9fd42f3dd 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 {
@@ -251,6 +254,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
« no previous file with comments | « components/sync/syncable/syncable_id.h ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698