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

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

Issue 257053003: Always use the same json for null in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js 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_test.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/code_observers.h" 9 #include "vm/code_observers.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 27 matching lines...) Expand all
38 static void SetSampleDepth(intptr_t depth); 38 static void SetSampleDepth(intptr_t depth);
39 static void SetSamplePeriod(intptr_t period); 39 static void SetSamplePeriod(intptr_t period);
40 40
41 static void InitProfilingForIsolate(Isolate* isolate, 41 static void InitProfilingForIsolate(Isolate* isolate,
42 bool shared_buffer = true); 42 bool shared_buffer = true);
43 static void ShutdownProfilingForIsolate(Isolate* isolate); 43 static void ShutdownProfilingForIsolate(Isolate* isolate);
44 44
45 static void BeginExecution(Isolate* isolate); 45 static void BeginExecution(Isolate* isolate);
46 static void EndExecution(Isolate* isolate); 46 static void EndExecution(Isolate* isolate);
47 47
48 static void PrintToJSONStream(Isolate* isolate, JSONStream* stream, 48 static void PrintJSON(Isolate* isolate, JSONStream* stream,
49 bool full, TagOrder tag_order); 49 bool full, TagOrder tag_order);
50 static void WriteProfile(Isolate* isolate); 50 static void WriteProfile(Isolate* isolate);
51 51
52 static SampleBuffer* sample_buffer() { 52 static SampleBuffer* sample_buffer() {
53 return sample_buffer_; 53 return sample_buffer_;
54 } 54 }
55 55
56 private: 56 private:
57 static bool initialized_; 57 static bool initialized_;
58 static Monitor* monitor_; 58 static Monitor* monitor_;
59 59
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 intptr_t capacity_; 234 intptr_t capacity_;
235 uintptr_t cursor_; 235 uintptr_t cursor_;
236 236
237 DISALLOW_COPY_AND_ASSIGN(SampleBuffer); 237 DISALLOW_COPY_AND_ASSIGN(SampleBuffer);
238 }; 238 };
239 239
240 240
241 } // namespace dart 241 } // namespace dart
242 242
243 #endif // VM_PROFILER_H_ 243 #endif // VM_PROFILER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698