| Index: base/trace_event/heap_profiler_allocation_context_tracker.h
|
| diff --git a/base/trace_event/heap_profiler_allocation_context_tracker.h b/base/trace_event/heap_profiler_allocation_context_tracker.h
|
| index 83912ce3cc232434fa2c937d9e21a958152b9c61..93cd110ffba943f7501493a1b2916887b05af804 100644
|
| --- a/base/trace_event/heap_profiler_allocation_context_tracker.h
|
| +++ b/base/trace_event/heap_profiler_allocation_context_tracker.h
|
| @@ -61,6 +61,13 @@ class BASE_EXPORT AllocationContextTracker {
|
| // Pops a frame from the thread-local pseudo stack.
|
| static void PopPseudoStackFrame(StackFrame frame);
|
|
|
| + // Pushes the thread name as the first entry in the pseudo stack.
|
| + static void SetThreadName(const char* name);
|
| +
|
| + // Sets the file name where the current task on thread is posted from. This is
|
| + // used to categorize theallocations by source path.
|
| + static void SetCurrentTaskFileName(const char* file_name);
|
| +
|
| // Returns a snapshot of the current thread-local context.
|
| static AllocationContext GetContextSnapshot();
|
|
|
| @@ -76,6 +83,9 @@ class BASE_EXPORT AllocationContextTracker {
|
| // The pseudo stack where frames are |TRACE_EVENT| names.
|
| std::vector<StackFrame> pseudo_stack_;
|
|
|
| + // Name of the file from which the current task is posted from.
|
| + const char* current_task_file_name_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AllocationContextTracker);
|
| };
|
|
|
|
|