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

Unified Diff: runtime/vm/profiler.h

Issue 85333006: Profiler fixes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « runtime/platform/thread_win.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler.h
diff --git a/runtime/vm/profiler.h b/runtime/vm/profiler.h
index 06561c9fb4c4794bafb7d32876d034e2b56a6bf1..d8f2946f6ab8aae61849cd3d7899a434489afe3b 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -109,6 +109,10 @@ class IsolateProfilerData {
SampleBuffer* sample_buffer() const { return sample_buffer_; }
+ void set_sample_buffer(SampleBuffer* sample_buffer) {
+ sample_buffer_ = sample_buffer;
+ }
+
private:
int64_t last_sampled_micros_;
int64_t timer_expiration_micros_;
@@ -143,7 +147,7 @@ struct Sample {
// Ring buffer of samples. One per isolate.
class SampleBuffer {
public:
- static const intptr_t kDefaultBufferCapacity = 1000000;
+ static const intptr_t kDefaultBufferCapacity = 120000; // 2 minutes @ 1000hz.
explicit SampleBuffer(intptr_t capacity = kDefaultBufferCapacity);
~SampleBuffer();
« no previous file with comments | « runtime/platform/thread_win.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698