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

Side by Side Diff: sync/syncable/entry_kernel.cc

Issue 2084243004: [WIP][tracing] Add memory dump provider for sync Directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 years, 5 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
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 "sync/syncable/entry_kernel.h" 5 #include "sync/syncable/entry_kernel.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/json/string_escape.h" 10 #include "base/json/string_escape.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "sync/protocol/proto_value_conversions.h" 12 #include "sync/protocol/proto_value_conversions.h"
13 #include "sync/syncable/syncable_columns.h" 13 #include "sync/syncable/syncable_columns.h"
14 #include "sync/syncable/syncable_enum_conversions.h" 14 #include "sync/syncable/syncable_enum_conversions.h"
15 #include "sync/util/cryptographer.h" 15 #include "sync/util/cryptographer.h"
16 16
17 namespace syncer { 17 namespace syncer {
18 namespace syncable { 18 namespace syncable {
19 19
20 EntryKernel::EntryKernel() : dirty_(false) { 20 EntryKernel::EntryKernel() : dirty_(false), cached_size_(0) {
21 // Everything else should already be default-initialized. 21 // Everything else should already be default-initialized.
22 for (int i = 0; i < INT64_FIELDS_COUNT; ++i) { 22 for (int i = 0; i < INT64_FIELDS_COUNT; ++i) {
23 int64_fields[i] = 0; 23 int64_fields[i] = 0;
24 } 24 }
25 } 25 }
26 26
27 EntryKernel::EntryKernel(const EntryKernel& other) = default; 27 EntryKernel::EntryKernel(const EntryKernel& other) = default;
28 28
29 EntryKernel::~EntryKernel() {} 29 EntryKernel::~EntryKernel() {}
30 30
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 os << "TempFlags: "; 287 os << "TempFlags: ";
288 for (; i < BIT_TEMPS_END; ++i) { 288 for (; i < BIT_TEMPS_END; ++i) {
289 if (kernel->ref(static_cast<BitTemp>(i))) 289 if (kernel->ref(static_cast<BitTemp>(i)))
290 os << "#" << i - BIT_TEMPS_BEGIN << ", "; 290 os << "#" << i - BIT_TEMPS_BEGIN << ", ";
291 } 291 }
292 return os; 292 return os;
293 } 293 }
294 294
295 } // namespace syncable 295 } // namespace syncable
296 } // namespace syncer 296 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698