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

Unified Diff: src/profiler/sampling-heap-profiler.h

Issue 1706343002: Unsampling for the sampling heap profiler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment on rounding Created 4 years, 10 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 | « no previous file | src/profiler/sampling-heap-profiler.cc » ('j') | src/profiler/sampling-heap-profiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/profiler/sampling-heap-profiler.h
diff --git a/src/profiler/sampling-heap-profiler.h b/src/profiler/sampling-heap-profiler.h
index 9aee282c8aff3da185df0aaea3b732989ab92cdf..522db67c9b46e3f476854c52361ef099d76d72e2 100644
--- a/src/profiler/sampling-heap-profiler.h
+++ b/src/profiler/sampling-heap-profiler.h
@@ -111,6 +111,7 @@ class SamplingHeapProfiler {
v8::AllocationProfile::Node* TranslateAllocationNode(
AllocationProfile* profile, SamplingHeapProfiler::AllocationNode* node,
const std::map<int, Script*>& scripts);
+ v8::AllocationProfile::Allocation Unsample(size_t size, unsigned int count);
AllocationNode* AddStack();
AllocationNode* FindOrAddChildNode(AllocationNode* parent, const char* name,
int script_id, int start_position);
@@ -123,6 +124,7 @@ class SamplingHeapProfiler {
AllocationNode profile_root_;
std::set<Sample*> samples_;
const int stack_depth_;
+ const uint64_t rate_;
friend class SamplingAllocationObserver;
};
« no previous file with comments | « no previous file | src/profiler/sampling-heap-profiler.cc » ('j') | src/profiler/sampling-heap-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698