| OLD | NEW |
| 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_PROFILER_SERVICE_H_ | 5 #ifndef VM_PROFILER_SERVICE_H_ |
| 6 #define VM_PROFILER_SERVICE_H_ | 6 #define VM_PROFILER_SERVICE_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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 ProfileTrieNode* current_; | 359 ProfileTrieNode* current_; |
| 360 bool code_trie_; | 360 bool code_trie_; |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 | 363 |
| 364 class ProfilerService : public AllStatic { | 364 class ProfilerService : public AllStatic { |
| 365 public: | 365 public: |
| 366 static void PrintJSON(JSONStream* stream, | 366 static void PrintJSON(JSONStream* stream, |
| 367 Profile::TagOrder tag_order); | 367 Profile::TagOrder tag_order); |
| 368 | 368 |
| 369 static void PrintAllocationJSON(JSONStream* stream, |
| 370 Profile::TagOrder tag_order, |
| 371 const Class& cls); |
| 372 |
| 369 static void ClearSamples(); | 373 static void ClearSamples(); |
| 374 |
| 375 private: |
| 376 static void PrintJSONImpl(Isolate* isolate, |
| 377 JSONStream* stream, |
| 378 Profile::TagOrder tag_order, |
| 379 SampleFilter* filter); |
| 370 }; | 380 }; |
| 371 | 381 |
| 372 } // namespace dart | 382 } // namespace dart |
| 373 | 383 |
| 374 #endif // VM_PROFILER_SERVICE_H_ | 384 #endif // VM_PROFILER_SERVICE_H_ |
| OLD | NEW |