| Index: src/profiler/sampling-heap-profiler.h
|
| diff --git a/src/profiler/sampling-heap-profiler.h b/src/profiler/sampling-heap-profiler.h
|
| index 0b538b070c49cdb62783ad7ced5263e05d221ebf..b5709d240ec14b865a0ab8804226222413acf9b8 100644
|
| --- a/src/profiler/sampling-heap-profiler.h
|
| +++ b/src/profiler/sampling-heap-profiler.h
|
| @@ -71,11 +71,13 @@ class SamplingHeapProfiler {
|
|
|
| class AllocationNode {
|
| public:
|
| - AllocationNode(const char* const name, int script_id,
|
| - const int start_position)
|
| - : script_id_(script_id),
|
| + AllocationNode(AllocationNode* parent, const char* name, int script_id,
|
| + int start_position)
|
| + : parent_(parent),
|
| + script_id_(script_id),
|
| script_position_(start_position),
|
| - name_(name) {}
|
| + name_(name),
|
| + pinned_(false) {}
|
| ~AllocationNode() {
|
| for (auto child : children_) {
|
| delete child;
|
| @@ -85,9 +87,11 @@ class SamplingHeapProfiler {
|
| private:
|
| std::map<size_t, unsigned int> allocations_;
|
| std::vector<AllocationNode*> children_;
|
| + AllocationNode* const parent_;
|
| const int script_id_;
|
| const int script_position_;
|
| const char* const name_;
|
| + bool pinned_;
|
|
|
| friend class SamplingHeapProfiler;
|
|
|
|
|