Index: base/profiler/stack_sampling_profiler.cc |
diff --git a/base/profiler/stack_sampling_profiler.cc b/base/profiler/stack_sampling_profiler.cc |
index 57b7b355a080923b2acc4b2201d4e58d7bb666ab..f7605079953769e162aa7463ebc54c6ea772485a 100644 |
--- a/base/profiler/stack_sampling_profiler.cc |
+++ b/base/profiler/stack_sampling_profiler.cc |
@@ -65,6 +65,10 @@ void PendingProfiles::GetProfiles( |
} // namespace |
StackSamplingProfiler::Module::Module() : base_address(nullptr) {} |
+StackSamplingProfiler::Module::Module(const void* base_address, |
+ const std::string& id, |
+ const FilePath& filename) |
+ : base_address(base_address), id(id), filename(filename) {} |
StackSamplingProfiler::Module::~Module() {} |
@@ -72,6 +76,11 @@ StackSamplingProfiler::Frame::Frame() |
: instruction_pointer(nullptr), |
module_index(-1) {} |
+StackSamplingProfiler::Frame::Frame(const void* instruction_pointer, |
+ int module_index) |
+ : instruction_pointer(instruction_pointer), |
+ module_index(module_index) {} |
+ |
StackSamplingProfiler::Frame::~Frame() {} |
StackSamplingProfiler::Profile::Profile() : preserve_sample_ordering(false) {} |