Chromium Code Reviews| Index: src/profile-generator.cc |
| diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
| index 2046f9b93d87bdc9ed8b5233f7c93134b55094be..90eec15f55007ed20bc6f37516a48e54d8b2ec9d 100644 |
| --- a/src/profile-generator.cc |
| +++ b/src/profile-generator.cc |
| @@ -1096,9 +1096,9 @@ const char* HeapEntry::TypeAsString() { |
| } |
| -int HeapEntry::EntriesSize(int entries_count, |
| - int children_count, |
| - int retainers_count) { |
| +size_t HeapEntry::EntriesSize(int entries_count, |
| + int children_count, |
| + int retainers_count) { |
|
alexeif
2012/03/11 11:15:59
tabs?
|
| return sizeof(HeapEntry) * entries_count // NOLINT |
| + sizeof(HeapGraphEdge) * children_count // NOLINT |
| + sizeof(HeapGraphEdge*) * retainers_count; // NOLINT |
| @@ -1114,13 +1114,13 @@ template <size_t ptr_size> struct SnapshotSizeConstants; |
| template <> struct SnapshotSizeConstants<4> { |
| static const int kExpectedHeapGraphEdgeSize = 12; |
| static const int kExpectedHeapEntrySize = 36; |
| - static const int kMaxSerializableSnapshotRawSize = 256 * MB; |
| + static const size_t kMaxSerializableSnapshotRawSize = 256 * MB; |
| }; |
| template <> struct SnapshotSizeConstants<8> { |
| static const int kExpectedHeapGraphEdgeSize = 24; |
| static const int kExpectedHeapEntrySize = 48; |
| - static const int kMaxSerializableSnapshotRawSize = 768 * MB; |
| + static const size_t kMaxSerializableSnapshotRawSize = 6000ul * MB; |
| }; |
| } // namespace |