Chromium Code Reviews| 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_MEMORY_DUMP_SESSION_STATE_H_ | 5 #ifndef BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_ |
|
Primiano Tucci (use gerrit)
2017/05/05 13:38:25
shouldn't we rename this to HeapProfilerSerializat
hjd
2017/05/05 14:50:53
I felt bad for dskiba's CL. Done.
| |
| 6 #define BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_ | 6 #define BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
| 12 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" | 12 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" |
| 13 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" | 13 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" |
| 14 #include "base/trace_event/memory_dump_request_args.h" | 14 #include "base/trace_event/memory_dump_request_args.h" |
| 15 | 15 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 ~MemoryDumpSessionState(); | 59 ~MemoryDumpSessionState(); |
| 60 | 60 |
| 61 // Deduplicates backtraces in heap dumps so they can be written once when the | 61 // Deduplicates backtraces in heap dumps so they can be written once when the |
| 62 // trace is finalized. | 62 // trace is finalized. |
| 63 std::unique_ptr<StackFrameDeduplicator> stack_frame_deduplicator_; | 63 std::unique_ptr<StackFrameDeduplicator> stack_frame_deduplicator_; |
| 64 | 64 |
| 65 // Deduplicates type names in heap dumps so they can be written once when the | 65 // Deduplicates type names in heap dumps so they can be written once when the |
| 66 // trace is finalized. | 66 // trace is finalized. |
| 67 std::unique_ptr<TypeNameDeduplicator> type_name_deduplicator_; | 67 std::unique_ptr<TypeNameDeduplicator> type_name_deduplicator_; |
| 68 | 68 |
| 69 std::set<MemoryDumpLevelOfDetail> allowed_dump_modes_; | |
| 70 | |
| 71 uint32_t heap_profiler_breakdown_threshold_bytes_; | 69 uint32_t heap_profiler_breakdown_threshold_bytes_; |
| 72 }; | 70 }; |
| 73 | 71 |
| 74 } // namespace trace_event | 72 } // namespace trace_event |
| 75 } // namespace base | 73 } // namespace base |
| 76 | 74 |
| 77 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_ | 75 #endif // BASE_TRACE_EVENT_MEMORY_DUMP_SESSION_STATE_H_ |
| OLD | NEW |