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

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

Issue 2939853002: [fuchsia] Make profile processing resilient to bogus overlaps from dladdr. (Closed)
Patch Set: verify too slow to leave on Created 3 years, 6 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
« no previous file with comments | « no previous file | runtime/vm/profiler_service.cc » ('j') | runtime/vm/profiler_service.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 RUNTIME_VM_PROFILER_SERVICE_H_ 5 #ifndef RUNTIME_VM_PROFILER_SERVICE_H_
6 #define RUNTIME_VM_PROFILER_SERVICE_H_ 6 #define RUNTIME_VM_PROFILER_SERVICE_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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const Code& code); 164 const Code& code);
165 165
166 Kind kind() const { return kind_; } 166 Kind kind() const { return kind_; }
167 167
168 uword start() const { return start_; } 168 uword start() const { return start_; }
169 void set_start(uword start) { start_ = start; } 169 void set_start(uword start) { start_ = start; }
170 170
171 uword end() const { return end_; } 171 uword end() const { return end_; }
172 void set_end(uword end) { end_ = end; } 172 void set_end(uword end) { end_ = end; }
173 173
174 void AdjustExtent(uword start, uword end); 174 void ExpandLower(uword start);
175 void ExpandUpper(uword end);
176 void TruncateLower(uword start);
177 void TruncateUpper(uword end);
175 178
176 bool Contains(uword pc) const { return (pc >= start_) && (pc < end_); } 179 bool Contains(uword pc) const { return (pc >= start_) && (pc < end_); }
177 180
178 bool Overlaps(const ProfileCode* other) const; 181 bool Overlaps(const ProfileCode* other) const;
179 182
180 int64_t compile_timestamp() const { return compile_timestamp_; } 183 int64_t compile_timestamp() const { return compile_timestamp_; }
181 void set_compile_timestamp(int64_t timestamp) { 184 void set_compile_timestamp(int64_t timestamp) {
182 compile_timestamp_ = timestamp; 185 compile_timestamp_ = timestamp;
183 } 186 }
184 187
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 JSONStream* stream, 457 JSONStream* stream,
455 Profile::TagOrder tag_order, 458 Profile::TagOrder tag_order,
456 intptr_t extra_tags, 459 intptr_t extra_tags,
457 SampleFilter* filter, 460 SampleFilter* filter,
458 bool as_timline); 461 bool as_timline);
459 }; 462 };
460 463
461 } // namespace dart 464 } // namespace dart
462 465
463 #endif // RUNTIME_VM_PROFILER_SERVICE_H_ 466 #endif // RUNTIME_VM_PROFILER_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/profiler_service.cc » ('j') | runtime/vm/profiler_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698