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

Side by Side Diff: sql/connection.cc

Issue 2545173002: [tracing] Remove MemoryAllocatorDump::process_memory_dump (Closed)
Patch Set: Fix include. Created 4 years 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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 ret = stmt.Succeeded(); 2037 ret = stmt.Succeeded();
2038 } 2038 }
2039 2039
2040 // Best effort to put things back as they were before. 2040 // Best effort to put things back as they were before.
2041 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF"; 2041 const char kNoWritableSchema[] = "PRAGMA writable_schema = OFF";
2042 ignore_result(Execute(kNoWritableSchema)); 2042 ignore_result(Execute(kNoWritableSchema));
2043 2043
2044 return ret; 2044 return ret;
2045 } 2045 }
2046 2046
2047 bool Connection::ReportMemoryUsage( 2047 bool Connection::ReportMemoryUsage(base::trace_event::ProcessMemoryDump* pmd,
2048 base::trace_event::MemoryAllocatorDump* mad) { 2048 const std::string& dump_name) {
2049 return memory_dump_provider_ && 2049 return memory_dump_provider_ &&
2050 memory_dump_provider_->ReportMemoryUsage(mad); 2050 memory_dump_provider_->ReportMemoryUsage(pmd, dump_name);
2051 } 2051 }
2052 2052
2053 base::TimeTicks TimeSource::Now() { 2053 base::TimeTicks TimeSource::Now() {
2054 return base::TimeTicks::Now(); 2054 return base::TimeTicks::Now();
2055 } 2055 }
2056 2056
2057 } // namespace sql 2057 } // 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