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

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

Issue 1799933002: Ensure embedder timeline callbacks are called for service protocol requests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 "include/dart_tools_api.h" 8 #include "include/dart_tools_api.h"
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 virtual TimelineEvent* StartEvent() = 0; 671 virtual TimelineEvent* StartEvent() = 0;
672 virtual void CompleteEvent(TimelineEvent* event) = 0; 672 virtual void CompleteEvent(TimelineEvent* event) = 0;
673 virtual TimelineEventBlock* GetHeadBlockLocked() = 0; 673 virtual TimelineEventBlock* GetHeadBlockLocked() = 0;
674 virtual TimelineEventBlock* GetNewBlockLocked() = 0; 674 virtual TimelineEventBlock* GetNewBlockLocked() = 0;
675 virtual void Clear() = 0; 675 virtual void Clear() = 0;
676 676
677 // Utility method(s). 677 // Utility method(s).
678 void PrintJSONMeta(JSONArray* array) const; 678 void PrintJSONMeta(JSONArray* array) const;
679 TimelineEvent* ThreadBlockStartEvent(); 679 TimelineEvent* ThreadBlockStartEvent();
680 void ThreadBlockCompleteEvent(TimelineEvent* event); 680 void ThreadBlockCompleteEvent(TimelineEvent* event);
681 void PrintEmbedderJSONEvents(JSONStream* events);
681 682
682 Mutex lock_; 683 Mutex lock_;
683 uintptr_t async_id_; 684 uintptr_t async_id_;
684 685
685 friend class TimelineEvent; 686 friend class TimelineEvent;
686 friend class TimelineEventBlockIterator; 687 friend class TimelineEventBlockIterator;
687 friend class TimelineStream; 688 friend class TimelineStream;
688 friend class TimelineTestHelper; 689 friend class TimelineTestHelper;
689 friend class Timeline; 690 friend class Timeline;
690 691
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 803
803 private: 804 private:
804 TimelineEventBlock* current_; 805 TimelineEventBlock* current_;
805 TimelineEventRecorder* recorder_; 806 TimelineEventRecorder* recorder_;
806 }; 807 };
807 808
808 809
809 } // namespace dart 810 } // namespace dart
810 811
811 #endif // VM_TIMELINE_H_ 812 #endif // VM_TIMELINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698