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

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

Issue 2459903003: [Tracing] Use TracingCategoryObserver in gc statistics (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « src/flag-definitions.h ('k') | 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 #include <map> 9 #include <map>
10 10
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 bool ConfigureHeapDefault(); 937 bool ConfigureHeapDefault();
938 938
939 // Prepares the heap, setting up memory areas that are needed in the isolate 939 // Prepares the heap, setting up memory areas that are needed in the isolate
940 // without actually creating any objects. 940 // without actually creating any objects.
941 bool SetUp(); 941 bool SetUp();
942 942
943 // Bootstraps the object heap with the core set of objects required to run. 943 // Bootstraps the object heap with the core set of objects required to run.
944 // Returns whether it succeeded. 944 // Returns whether it succeeded.
945 bool CreateHeapObjects(); 945 bool CreateHeapObjects();
946 946
947 // Create ObjectStats if live_object_stats_ or dead_object_stats_ are nullptr.
948 V8_INLINE void CreateObjectStats();
949
947 // Destroys all memory allocated by the heap. 950 // Destroys all memory allocated by the heap.
948 void TearDown(); 951 void TearDown();
949 952
950 // Returns whether SetUp has been called. 953 // Returns whether SetUp has been called.
951 bool HasBeenSetUp(); 954 bool HasBeenSetUp();
952 955
953 // =========================================================================== 956 // ===========================================================================
954 // Getters for spaces. ======================================================= 957 // Getters for spaces. =======================================================
955 // =========================================================================== 958 // ===========================================================================
956 959
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 friend class LargeObjectSpace; 2628 friend class LargeObjectSpace;
2626 friend class NewSpace; 2629 friend class NewSpace;
2627 friend class PagedSpace; 2630 friend class PagedSpace;
2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2631 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2629 }; 2632 };
2630 2633
2631 } // namespace internal 2634 } // namespace internal
2632 } // namespace v8 2635 } // namespace v8
2633 2636
2634 #endif // V8_HEAP_HEAP_H_ 2637 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698