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

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

Issue 1387643002: Move vm_tags from isolate to thread, since we may have multiple threads in same isolate (GC, backgr… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: More comment cleanups Created 5 years, 2 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 | « runtime/vm/object.cc ('k') | runtime/vm/profiler.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) 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/bitfield.h" 9 #include "vm/bitfield.h"
10 #include "vm/code_observers.h" 10 #include "vm/code_observers.h"
(...skipping 26 matching lines...) Expand all
37 bool shared_buffer = true); 37 bool shared_buffer = true);
38 static void ShutdownProfilingForIsolate(Isolate* isolate); 38 static void ShutdownProfilingForIsolate(Isolate* isolate);
39 39
40 static void BeginExecution(Isolate* isolate); 40 static void BeginExecution(Isolate* isolate);
41 static void EndExecution(Isolate* isolate); 41 static void EndExecution(Isolate* isolate);
42 42
43 static SampleBuffer* sample_buffer() { 43 static SampleBuffer* sample_buffer() {
44 return sample_buffer_; 44 return sample_buffer_;
45 } 45 }
46 46
47 static void RecordAllocation(Isolate* isolate, intptr_t cid); 47 static void RecordAllocation(Thread* thread, intptr_t cid);
48 48
49 private: 49 private:
50 static bool initialized_; 50 static bool initialized_;
51 static Monitor* monitor_; 51 static Monitor* monitor_;
52 52
53 static void RecordSampleInterruptCallback(const InterruptedThreadState& state, 53 static void RecordSampleInterruptCallback(const InterruptedThreadState& state,
54 void* data); 54 void* data);
55 55
56 static SampleBuffer* sample_buffer_; 56 static SampleBuffer* sample_buffer_;
57 }; 57 };
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 private: 557 private:
558 ZoneGrowableArray<ProcessedSample*> samples_; 558 ZoneGrowableArray<ProcessedSample*> samples_;
559 559
560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer); 560 DISALLOW_COPY_AND_ASSIGN(ProcessedSampleBuffer);
561 }; 561 };
562 562
563 } // namespace dart 563 } // namespace dart
564 564
565 #endif // VM_PROFILER_H_ 565 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698