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

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

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/raw_object.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_PROFILER_H_ 5 #ifndef VM_PROFILER_H_
6 #define VM_PROFILER_H_ 6 #define VM_PROFILER_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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Each Sample holds a stack trace from an isolate. 115 // Each Sample holds a stack trace from an isolate.
116 class Sample { 116 class Sample {
117 public: 117 public:
118 void Init(Isolate* isolate, int64_t timestamp, ThreadId tid) { 118 void Init(Isolate* isolate, int64_t timestamp, ThreadId tid) {
119 timestamp_ = timestamp; 119 timestamp_ = timestamp;
120 tid_ = tid; 120 tid_ = tid;
121 isolate_ = isolate; 121 isolate_ = isolate;
122 pc_marker_ = 0; 122 pc_marker_ = 0;
123 vm_tag_ = VMTag::kInvalidTagId; 123 vm_tag_ = VMTag::kInvalidTagId;
124 user_tag_ = UserTags::kNoUserTag; 124 user_tag_ = UserTags::kDefaultUserTag;
125 sp_ = 0; 125 sp_ = 0;
126 fp_ = 0; 126 fp_ = 0;
127 state_ = 0; 127 state_ = 0;
128 for (intptr_t i = 0; i < kSampleFramesSize; i++) { 128 for (intptr_t i = 0; i < kSampleFramesSize; i++) {
129 pcs_[i] = 0; 129 pcs_[i] = 0;
130 } 130 }
131 } 131 }
132 132
133 // Isolate sample was taken from. 133 // Isolate sample was taken from.
134 Isolate* isolate() const { 134 Isolate* isolate() const {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 intptr_t capacity_; 297 intptr_t capacity_;
298 uintptr_t cursor_; 298 uintptr_t cursor_;
299 299
300 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); 300 DISALLOW_COPY_AND_ASSIGN(SampleBuffer);
301 }; 301 };
302 302
303 303
304 } // namespace dart 304 } // namespace dart
305 305
306 #endif // VM_PROFILER_H_ 306 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698