| 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 1d609f6d2e3188a0f136656548b7c4f0d22aaa08..c100dba78d30741b6de6dda83d1d173db8cafa5e 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);
|
| };
|
|
|
|
|