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

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

Issue 1283093004: Ensure TimelineEventRingRecorder outputs blocks in increasing time order (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/timeline.cc » ('j') | no next file with comments »
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 VM_TIMELINE_H_ 5 #ifndef VM_TIMELINE_H_
6 #define VM_TIMELINE_H_ 6 #define VM_TIMELINE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/bitfield.h" 9 #include "vm/bitfield.h"
10 10
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 void PrintJSON(JSONStream* js); 386 void PrintJSON(JSONStream* js);
387 TimelineEventBlock* GetNewBlock(); 387 TimelineEventBlock* GetNewBlock();
388 TimelineEventBlock* GetHeadBlock(); 388 TimelineEventBlock* GetHeadBlock();
389 389
390 protected: 390 protected:
391 void VisitObjectPointers(ObjectPointerVisitor* visitor); 391 void VisitObjectPointers(ObjectPointerVisitor* visitor);
392 TimelineEvent* StartEvent(const Object& object); 392 TimelineEvent* StartEvent(const Object& object);
393 TimelineEvent* StartEvent(); 393 TimelineEvent* StartEvent();
394 void CompleteEvent(TimelineEvent* event); 394 void CompleteEvent(TimelineEvent* event);
395 395
396 intptr_t FindOldestBlockIndex() const;
396 TimelineEventBlock* GetNewBlockLocked(); 397 TimelineEventBlock* GetNewBlockLocked();
397 398
398 void PrintJSONEvents(JSONArray* array) const; 399 void PrintJSONEvents(JSONArray* array) const;
399 400
400 TimelineEventBlock** blocks_; 401 TimelineEventBlock** blocks_;
401 RawArray* event_objects_; 402 RawArray* event_objects_;
402 intptr_t capacity_; 403 intptr_t capacity_;
403 intptr_t num_blocks_; 404 intptr_t num_blocks_;
404 intptr_t block_cursor_; 405 intptr_t block_cursor_;
405 }; 406 };
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 } 483 }
483 484
484 private: 485 private:
485 TimelineEventBlock* current_; 486 TimelineEventBlock* current_;
486 TimelineEventRecorder* recorder_; 487 TimelineEventRecorder* recorder_;
487 }; 488 };
488 489
489 } // namespace dart 490 } // namespace dart
490 491
491 #endif // VM_TIMELINE_H_ 492 #endif // VM_TIMELINE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698