| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ | 5 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ |
| 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ | 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 std::set<Entry> entries_; | 90 std::set<Entry> entries_; |
| 91 | 91 |
| 92 // Helper for generating the |stackFrames| dictionary. Not owned, must outlive | 92 // Helper for generating the |stackFrames| dictionary. Not owned, must outlive |
| 93 // this heap dump writer instance. | 93 // this heap dump writer instance. |
| 94 StackFrameDeduplicator* const stack_frame_deduplicator_; | 94 StackFrameDeduplicator* const stack_frame_deduplicator_; |
| 95 | 95 |
| 96 // Helper for converting type names to IDs. Not owned, must outlive this heap | 96 // Helper for converting type names to IDs. Not owned, must outlive this heap |
| 97 // dump writer instance. | 97 // dump writer instance. |
| 98 TypeNameDeduplicator* const type_name_deduplicator_; | 98 TypeNameDeduplicator* const type_name_deduplicator_; |
| 99 | 99 |
| 100 // Minimum size of an allocation for which a stack trace will be kept. |
| 101 size_t min_allocation_size_bytes_; |
| 102 |
| 100 DISALLOW_COPY_AND_ASSIGN(HeapDumpWriter); | 103 DISALLOW_COPY_AND_ASSIGN(HeapDumpWriter); |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace internal | 106 } // namespace internal |
| 104 } // namespace trace_event | 107 } // namespace trace_event |
| 105 } // namespace base | 108 } // namespace base |
| 106 | 109 |
| 107 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ | 110 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_HEAP_DUMP_WRITER_H_ |
| OLD | NEW |