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

Side by Side Diff: src/heap/heap.h

Issue 1097683002: Clean up output of heap object tracing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile error Created 5 years, 8 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 | « no previous file | src/heap/heap.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 object_sizes_[code_age_index] += size; 1436 object_sizes_[code_age_index] += size;
1437 } 1437 }
1438 1438
1439 void RecordFixedArraySubTypeStats(int array_sub_type, size_t size) { 1439 void RecordFixedArraySubTypeStats(int array_sub_type, size_t size) {
1440 DCHECK(array_sub_type <= LAST_FIXED_ARRAY_SUB_TYPE); 1440 DCHECK(array_sub_type <= LAST_FIXED_ARRAY_SUB_TYPE);
1441 object_counts_[FIRST_FIXED_ARRAY_SUB_TYPE + array_sub_type]++; 1441 object_counts_[FIRST_FIXED_ARRAY_SUB_TYPE + array_sub_type]++;
1442 object_sizes_[FIRST_FIXED_ARRAY_SUB_TYPE + array_sub_type] += size; 1442 object_sizes_[FIRST_FIXED_ARRAY_SUB_TYPE + array_sub_type] += size;
1443 } 1443 }
1444 1444
1445 void TraceObjectStats(); 1445 void TraceObjectStats();
1446 void TraceObjectStat(const char* name, int count, int size, double time);
1446 void CheckpointObjectStats(); 1447 void CheckpointObjectStats();
1447 1448
1448 // We don't use a LockGuard here since we want to lock the heap 1449 // We don't use a LockGuard here since we want to lock the heap
1449 // only when FLAG_concurrent_recompilation is true. 1450 // only when FLAG_concurrent_recompilation is true.
1450 class RelocationLock { 1451 class RelocationLock {
1451 public: 1452 public:
1452 explicit RelocationLock(Heap* heap) : heap_(heap) { 1453 explicit RelocationLock(Heap* heap) : heap_(heap) {
1453 heap_->relocation_mutex_.Lock(); 1454 heap_->relocation_mutex_.Lock();
1454 } 1455 }
1455 1456
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2627 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2627 2628
2628 private: 2629 private:
2629 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2630 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2630 }; 2631 };
2631 #endif // DEBUG 2632 #endif // DEBUG
2632 } 2633 }
2633 } // namespace v8::internal 2634 } // namespace v8::internal
2634 2635
2635 #endif // V8_HEAP_HEAP_H_ 2636 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698