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

Unified Diff: runtime/vm/profiler.h

Issue 973553005: Fix memory leak in CPU Profile page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « runtime/observatory/lib/src/elements/cpu_profile.html ('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 47db7326fb7fa274d97557ab0adc113f2d760475..03d632efc7c5498fe6552e05f7329dee2f5ef7f2 100644
--- a/runtime/vm/profiler.h
+++ b/runtime/vm/profiler.h
@@ -298,6 +298,14 @@ class Sample {
state_ = MissingFrameInsertedBit::update(missing_frame_inserted, state_);
}
+ bool truncated_trace() const {
+ return TruncatedTraceBit::decode(state_);
+ }
+
+ void set_truncated_trace(bool truncated_trace) {
+ state_ = TruncatedTraceBit::update(truncated_trace, state_);
+ }
+
static void InitOnce();
static intptr_t instance_size() {
@@ -320,6 +328,7 @@ class Sample {
kIgnoreBit = 2,
kExitFrameBit = 3,
kMissingFrameInsertedBit = 4,
+ kTruncatedTrace = 5,
};
class ProcessedBit : public BitField<bool, kProcessedBit, 1> {};
class LeafFrameIsDart : public BitField<bool, kLeafFrameIsDartBit, 1> {};
@@ -327,6 +336,8 @@ class Sample {
class ExitFrameBit : public BitField<bool, kExitFrameBit, 1> {};
class MissingFrameInsertedBit
: public BitField<bool, kMissingFrameInsertedBit, 1> {};
+ class TruncatedTraceBit : public BitField<bool, kTruncatedTrace, 1> {};
+
int64_t timestamp_;
ThreadId tid_;
Isolate* isolate_;
« no previous file with comments | « runtime/observatory/lib/src/elements/cpu_profile.html ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698