| 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_ALLOCATION_CONTEXT_TRACKER_H_ | 5 #ifndef BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ |
| 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ | 6 #define BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // The thread name is used as the first entry in the pseudo stack. | 95 // The thread name is used as the first entry in the pseudo stack. |
| 96 const char* thread_name_; | 96 const char* thread_name_; |
| 97 | 97 |
| 98 // Stack of tasks' contexts. Context serves as a different dimension than | 98 // Stack of tasks' contexts. Context serves as a different dimension than |
| 99 // pseudo stack to cluster allocations. | 99 // pseudo stack to cluster allocations. |
| 100 std::vector<const char*> task_contexts_; | 100 std::vector<const char*> task_contexts_; |
| 101 | 101 |
| 102 uint32_t ignore_scope_depth_; | 102 uint32_t ignore_scope_depth_; |
| 103 | 103 |
| 104 #if HAVE_TRACE_STACK_FRAME_POINTERS && !defined(OS_NACL) |
| 105 debug::PerThreadStackInfo stack_info_; |
| 106 #endif |
| 107 |
| 104 DISALLOW_COPY_AND_ASSIGN(AllocationContextTracker); | 108 DISALLOW_COPY_AND_ASSIGN(AllocationContextTracker); |
| 105 }; | 109 }; |
| 106 | 110 |
| 107 } // namespace trace_event | 111 } // namespace trace_event |
| 108 } // namespace base | 112 } // namespace base |
| 109 | 113 |
| 110 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ | 114 #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_TRACKER_H_ |
| OLD | NEW |