|
43 | 43 | static LinearScanTimers _total_timer;
|
44 | 44 |
|
45 | 45 | // helper macro for short definition of timer
|
46 |
| - #define TIME_LINEAR_SCAN(timer_name) TraceTime _block_timer("", _total_timer.timer(LinearScanTimers::timer_name), TimeLinearScan || TimeEachLinearScan, Verbose); |
| 46 | + #define TIME_LINEAR_SCAN(timer_name) TraceTime _block_timer("", _total_timer.timer(LinearScanTimers::timer_name), TimeLinearScan, Verbose); |
47 | 47 |
|
48 | 48 | #else
|
49 | 49 | #define TIME_LINEAR_SCAN(timer_name)
|
@@ -3016,8 +3016,6 @@ void LinearScan::assign_reg_num() {
|
3016 | 3016 |
|
3017 | 3017 |
|
3018 | 3018 | void LinearScan::do_linear_scan() {
|
3019 |
| - NOT_PRODUCT(_total_timer.begin_method()); |
3020 |
| - |
3021 | 3019 | number_instructions();
|
3022 | 3020 |
|
3023 | 3021 | NOT_PRODUCT(print_lir(1, "Before Register Allocation"));
|
@@ -3072,7 +3070,6 @@ void LinearScan::do_linear_scan() {
|
3072 | 3070 |
|
3073 | 3071 | NOT_PRODUCT(print_lir(1, "Before Code Generation", false));
|
3074 | 3072 | NOT_PRODUCT(LinearScanStatistic::compute(this, _stat_final));
|
3075 |
| - NOT_PRODUCT(_total_timer.end_method(this)); |
3076 | 3073 | }
|
3077 | 3074 |
|
3078 | 3075 |
|
@@ -6727,45 +6724,6 @@ const char* LinearScanTimers::timer_name(int idx) {
|
6727 | 6724 | }
|
6728 | 6725 | }
|
6729 | 6726 |
|
6730 |
| -void LinearScanTimers::begin_method() { |
6731 |
| - if (TimeEachLinearScan) { |
6732 |
| - // reset all timers to measure only current method |
6733 |
| - for (int i = 0; i < number_of_timers; i++) { |
6734 |
| - timer(i)->reset(); |
6735 |
| - } |
6736 |
| - } |
6737 |
| -} |
6738 |
| - |
6739 |
| -void LinearScanTimers::end_method(LinearScan* allocator) { |
6740 |
| - if (TimeEachLinearScan) { |
6741 |
| - |
6742 |
| - double c = timer(timer_do_nothing)->seconds(); |
6743 |
| - double total = 0; |
6744 |
| - for (int i = 1; i < number_of_timers; i++) { |
6745 |
| - total += timer(i)->seconds() - c; |
6746 |
| - } |
6747 |
| - |
6748 |
| - if (total >= 0.0005) { |
6749 |
| - // print all information in one line for automatic processing |
6750 |
| - tty->print("@"); allocator->compilation()->method()->print_name(); |
6751 |
| - |
6752 |
| - tty->print("@ %d ", allocator->compilation()->method()->code_size()); |
6753 |
| - tty->print("@ %d ", allocator->block_at(allocator->block_count() - 1)->last_lir_instruction_id() / 2); |
6754 |
| - tty->print("@ %d ", allocator->block_count()); |
6755 |
| - tty->print("@ %d ", allocator->num_virtual_regs()); |
6756 |
| - tty->print("@ %d ", allocator->interval_count()); |
6757 |
| - tty->print("@ %d ", allocator->_num_calls); |
6758 |
| - tty->print("@ %d ", allocator->num_loops()); |
6759 |
| - |
6760 |
| - tty->print("@ %6.6f ", total); |
6761 |
| - for (int i = 1; i < number_of_timers; i++) { |
6762 |
| - tty->print("@ %4.1f ", ((timer(i)->seconds() - c) / total) * 100); |
6763 |
| - } |
6764 |
| - tty->cr(); |
6765 |
| - } |
6766 |
| - } |
6767 |
| -} |
6768 |
| - |
6769 | 6727 | void LinearScanTimers::print(double total_time) {
|
6770 | 6728 | if (TimeLinearScan) {
|
6771 | 6729 | // correction value: sum of dummy-timer that only measures the time that
|
|
0 commit comments