Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(876)

Unified Diff: base/profiler/stack_sampling_profiler.cc

Issue 981143006: Metrics provider for statistical stack profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fix multiline comment Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/profiler/stack_sampling_profiler.h ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « base/profiler/stack_sampling_profiler.h ('k') | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698