| Index: runtime/vm/timer.cc
|
| ===================================================================
|
| --- runtime/vm/timer.cc (revision 32801)
|
| +++ runtime/vm/timer.cc (working copy)
|
| @@ -26,7 +26,7 @@
|
|
|
|
|
| #define TIMER_FIELD_REPORT(name, msg) \
|
| - if (name().report() && name().message() != NULL) { \
|
| + if (name().report() && name().message() != NULL) { \
|
| OS::Print("%s : %" Pd64 " micros.\n", \
|
| name().message(), \
|
| name().TotalElapsedTime()); \
|
| @@ -37,6 +37,17 @@
|
| #undef TIMER_FIELD_REPORT
|
|
|
|
|
| +#define TIMER_STATE_REPORT(prefix, name) \
|
| + ASSERT(name().message() != NULL); \
|
| + OS::Print("%s %s : %s\n", \
|
| + prefix, name().message(), name().running() ? "on" : "off");
|
| +void TimerList::ReportTimerState(const char* prefix) {
|
| + TIMER_STATE_REPORT(prefix, time_native_execution);
|
| + TIMER_STATE_REPORT(prefix, time_dart_execution);
|
| +}
|
| +#undef TIMER_STATE_REPORT
|
| +
|
| +
|
| #define JSON_TIMER(name, msg) \
|
| { \
|
| JSONObject jsobj(&jsarr); \
|
|
|