| 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 RUNTIME_VM_PROFILER_SERVICE_H_ | 5 #ifndef RUNTIME_VM_PROFILER_SERVICE_H_ |
| 6 #define RUNTIME_VM_PROFILER_SERVICE_H_ | 6 #define RUNTIME_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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 intptr_t extra_tags, | 412 intptr_t extra_tags, |
| 413 int64_t time_origin_micros, | 413 int64_t time_origin_micros, |
| 414 int64_t time_extent_micros); | 414 int64_t time_extent_micros); |
| 415 | 415 |
| 416 static void PrintAllocationJSON(JSONStream* stream, | 416 static void PrintAllocationJSON(JSONStream* stream, |
| 417 Profile::TagOrder tag_order, | 417 Profile::TagOrder tag_order, |
| 418 const Class& cls, | 418 const Class& cls, |
| 419 int64_t time_origin_micros, | 419 int64_t time_origin_micros, |
| 420 int64_t time_extent_micros); | 420 int64_t time_extent_micros); |
| 421 | 421 |
| 422 static void PrintNativeAllocationJSON(JSONStream* stream, |
| 423 Profile::TagOrder tag_order, |
| 424 int64_t time_origin_micros, |
| 425 int64_t time_extent_micros); |
| 426 |
| 422 static void PrintTimelineJSON(JSONStream* stream, | 427 static void PrintTimelineJSON(JSONStream* stream, |
| 423 Profile::TagOrder tag_order, | 428 Profile::TagOrder tag_order, |
| 424 int64_t time_origin_micros, | 429 int64_t time_origin_micros, |
| 425 int64_t time_extent_micros); | 430 int64_t time_extent_micros); |
| 426 | 431 |
| 427 static void ClearSamples(); | 432 static void ClearSamples(); |
| 428 | 433 |
| 429 private: | 434 private: |
| 430 static void PrintJSONImpl(Thread* thread, | 435 static void PrintJSONImpl(Thread* thread, |
| 431 JSONStream* stream, | 436 JSONStream* stream, |
| 432 Profile::TagOrder tag_order, | 437 Profile::TagOrder tag_order, |
| 433 intptr_t extra_tags, | 438 intptr_t extra_tags, |
| 434 SampleFilter* filter, | 439 SampleFilter* filter, |
| 435 bool as_timline); | 440 bool as_timline); |
| 436 }; | 441 }; |
| 437 | 442 |
| 438 } // namespace dart | 443 } // namespace dart |
| 439 | 444 |
| 440 #endif // RUNTIME_VM_PROFILER_SERVICE_H_ | 445 #endif // RUNTIME_VM_PROFILER_SERVICE_H_ |
| OLD | NEW |