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

Side by Side Diff: sql/connection.cc

Issue 1406213005: [tracing] Add names to memory-infra dumpers for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory-infra-runtime
Patch Set: Rebase + fix android Created 5 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 unified diff | Download patch
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 <string.h> 7 #include <string.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/dump_without_crashing.h" 10 #include "base/debug/dump_without_crashing.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 mmap_disabled_(false), 348 mmap_disabled_(false),
349 mmap_enabled_(false), 349 mmap_enabled_(false),
350 total_changes_at_last_release_(0), 350 total_changes_at_last_release_(0),
351 stats_histogram_(NULL), 351 stats_histogram_(NULL),
352 commit_time_histogram_(NULL), 352 commit_time_histogram_(NULL),
353 autocommit_time_histogram_(NULL), 353 autocommit_time_histogram_(NULL),
354 update_time_histogram_(NULL), 354 update_time_histogram_(NULL),
355 query_time_histogram_(NULL), 355 query_time_histogram_(NULL),
356 clock_(new TimeSource()) { 356 clock_(new TimeSource()) {
357 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 357 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
358 this); 358 this, "sql::Connection", nullptr);
359 } 359 }
360 360
361 Connection::~Connection() { 361 Connection::~Connection() {
362 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider( 362 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
363 this); 363 this);
364 Close(); 364 Close();
365 } 365 }
366 366
367 void Connection::RecordEvent(Events event, size_t count) { 367 void Connection::RecordEvent(Events event, size_t count) {
368 for (size_t i = 0; i < count; ++i) { 368 for (size_t i = 0; i < count; ++i) {
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 ignore_result(Execute(kNoWritableSchema)); 1800 ignore_result(Execute(kNoWritableSchema));
1801 1801
1802 return ret; 1802 return ret;
1803 } 1803 }
1804 1804
1805 base::TimeTicks TimeSource::Now() { 1805 base::TimeTicks TimeSource::Now() {
1806 return base::TimeTicks::Now(); 1806 return base::TimeTicks::Now();
1807 } 1807 }
1808 1808
1809 } // namespace sql 1809 } // namespace sql
OLDNEW
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool.cc ('k') | third_party/WebKit/Source/platform/exported/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698