| Index: runtime/vm/profiler_service.cc
|
| diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc
|
| index 872b6009c3329b0e13850929b30e17ba679c5159..e773e9560f62f79946771ca24f2fc8cf7879b3da 100644
|
| --- a/runtime/vm/profiler_service.cc
|
| +++ b/runtime/vm/profiler_service.cc
|
| @@ -1071,6 +1071,13 @@ class ProfileBuilder : public ValueObject {
|
| timestamp > profile_->max_time_ ? timestamp : profile_->max_time_;
|
| }
|
|
|
| + void SanitizeMinMaxTimes() {
|
| + if ((profile_->min_time_ == kMaxInt64) && (profile_->max_time_ == 0)) {
|
| + profile_->min_time_ = 0;
|
| + profile_->max_time_ = 0;
|
| + }
|
| + }
|
| +
|
| void BuildCodeTable() {
|
| ScopeTimer sw("ProfileBuilder::BuildCodeTable", FLAG_trace_profiler);
|
| for (intptr_t sample_index = 0;
|
| @@ -1105,6 +1112,7 @@ class ProfileBuilder : public ValueObject {
|
| code->Tick(pc, IsExecutingFrame(sample, frame_index), sample_index);
|
| }
|
| }
|
| + SanitizeMinMaxTimes();
|
| }
|
|
|
| void FinalizeCodeIndexes() {
|
|
|