Index: base/profiler/stack_sampling_profiler.cc |
diff --git a/base/profiler/stack_sampling_profiler.cc b/base/profiler/stack_sampling_profiler.cc |
index 3d4979ca0bf49b9541737e23b4584e7d8b49c69a..10639759f6fa3d188fad9c8df5cb58823ab46f60 100644 |
--- a/base/profiler/stack_sampling_profiler.cc |
+++ b/base/profiler/stack_sampling_profiler.cc |
@@ -101,7 +101,9 @@ StackSamplingProfiler::Frame::Frame(uintptr_t instruction_pointer, |
StackSamplingProfiler::Frame::~Frame() {} |
-StackSamplingProfiler::Frame::Frame() {} |
+StackSamplingProfiler::Frame::Frame() |
+ : instruction_pointer(0), module_index(kUnknownModuleIndex) { |
+} |
// StackSamplingProfiler::CallStackProfile ------------------------------------ |
@@ -275,6 +277,12 @@ void StackSamplingProfiler::Stop() { |
// StackSamplingProfiler::Frame global functions ------------------------------ |
+bool operator==(const StackSamplingProfiler::Module& a, |
+ const StackSamplingProfiler::Module& b) { |
+ return a.base_address == b.base_address && a.id == b.id && |
+ a.filename == b.filename; |
+} |
+ |
bool operator==(const StackSamplingProfiler::Frame &a, |
const StackSamplingProfiler::Frame &b) { |
return a.instruction_pointer == b.instruction_pointer && |