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

Side by Side Diff: runtime/vm/profiler.h

Issue 205713004: Add isolate tag-profile and better handling of errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PROFILER_H_ 5 #ifndef VM_PROFILER_H_
6 #define VM_PROFILER_H_ 6 #define VM_PROFILER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 SampleBuffer* sample_buffer() const { return sample_buffer_; } 64 SampleBuffer* sample_buffer() const { return sample_buffer_; }
65 65
66 void set_sample_buffer(SampleBuffer* sample_buffer) { 66 void set_sample_buffer(SampleBuffer* sample_buffer) {
67 sample_buffer_ = sample_buffer; 67 sample_buffer_ = sample_buffer;
68 } 68 }
69 69
70 private: 70 private:
71 SampleBuffer* sample_buffer_; 71 SampleBuffer* sample_buffer_;
72 bool own_sample_buffer_; 72 bool own_sample_buffer_;
73
73 DISALLOW_COPY_AND_ASSIGN(IsolateProfilerData); 74 DISALLOW_COPY_AND_ASSIGN(IsolateProfilerData);
74 }; 75 };
75 76
76 77
77 class SampleVisitor { 78 class SampleVisitor {
78 public: 79 public:
79 explicit SampleVisitor(Isolate* isolate) : isolate_(isolate), visited_(0) { } 80 explicit SampleVisitor(Isolate* isolate) : isolate_(isolate), visited_(0) { }
80 virtual ~SampleVisitor() {} 81 virtual ~SampleVisitor() {}
81 82
82 virtual void VisitSample(Sample* sample) = 0; 83 virtual void VisitSample(Sample* sample) = 0;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 intptr_t capacity_; 217 intptr_t capacity_;
217 uintptr_t cursor_; 218 uintptr_t cursor_;
218 219
219 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); 220 DISALLOW_COPY_AND_ASSIGN(SampleBuffer);
220 }; 221 };
221 222
222 223
223 } // namespace dart 224 } // namespace dart
224 225
225 #endif // VM_PROFILER_H_ 226 #endif // VM_PROFILER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698