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

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

Issue 1274953004: Use real process and thread ids when outputting trace-event (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/bitfield.h" 8 #include "vm/bitfield.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 char* value; 89 char* value;
90 }; 90 };
91 91
92 int64_t timestamp0_; 92 int64_t timestamp0_;
93 int64_t timestamp1_; 93 int64_t timestamp1_;
94 TimelineEventArgument* arguments_; 94 TimelineEventArgument* arguments_;
95 intptr_t arguments_length_; 95 intptr_t arguments_length_;
96 uword state_; 96 uword state_;
97 const char* label_; 97 const char* label_;
98 TimelineStream* stream_; 98 TimelineStream* stream_;
99 Thread* thread_; 99 ThreadId thread_;
100 100
101 void FreeArguments(); 101 void FreeArguments();
102 102
103 void StreamInit(TimelineStream* stream); 103 void StreamInit(TimelineStream* stream);
104 void Init(EventType event_type, const char* label); 104 void Init(EventType event_type, const char* label);
105 105
106 void set_event_type(EventType event_type) { 106 void set_event_type(EventType event_type) {
107 state_ = EventTypeField::update(event_type, state_); 107 state_ = EventTypeField::update(event_type, state_);
108 } 108 }
109 109
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 TimelineEventBlock* GetNewBlockLocked(); 415 TimelineEventBlock* GetNewBlockLocked();
416 void PrintJSONEvents(JSONArray* array) const; 416 void PrintJSONEvents(JSONArray* array) const;
417 417
418 Mutex lock_; 418 Mutex lock_;
419 TimelineEventBlock* head_; 419 TimelineEventBlock* head_;
420 }; 420 };
421 421
422 } // namespace dart 422 } // namespace dart
423 423
424 #endif // VM_TIMELINE_H_ 424 #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