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

Side by Side Diff: sql/connection.cc

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
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 unified diff | Download patch
« no previous file with comments | « sql/connection.h ('k') | sql/connection_memory_dump_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sql/connection.h" 5 #include "sql/connection.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1982 ret = stmt.Succeeded(); 1982 ret = stmt.Succeeded();
1983 } 1983 }
1984 1984
1985 // Best effort to put things back as they were before. 1985 // Best effort to put things back as they were before.
1986 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; 1986 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF";
1987 ignore_result(Execute(kNoWritableSchema)); 1987 ignore_result(Execute(kNoWritableSchema));
1988 1988
1989 return ret; 1989 return ret;
1990 } 1990 }
1991 1991
1992 bool Connection::ReportMemoryUsage(
1993 base::trace_event::MemoryAllocatorDump* mad) {
1994 return memory_dump_provider_ &&
1995 memory_dump_provider_->ReportMemoryUsage(mad);
1996 }
1997
1992 base::TimeTicks TimeSource::Now() { 1998 base::TimeTicks TimeSource::Now() {
1993 return base::TimeTicks::Now(); 1999 return base::TimeTicks::Now();
1994 } 2000 }
1995 2001
1996 } // namespace sql 2002 } // namespace sql
OLDNEW
« no previous file with comments | « sql/connection.h ('k') | sql/connection_memory_dump_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698