equal
deleted
inserted
replaced
986 |
986 |
987 extern "C" void find(int x); |
987 extern "C" void find(int x); |
988 |
988 |
989 |
989 |
990 void ThreadProfiler::record_tick_for_running_frame(JavaThread* thread, frame fr) { |
990 void ThreadProfiler::record_tick_for_running_frame(JavaThread* thread, frame fr) { |
991 // The tick happend in real code -> non VM code |
991 // The tick happened in real code -> non VM code |
992 if (fr.is_interpreted_frame()) { |
992 if (fr.is_interpreted_frame()) { |
993 interval_data_ref()->inc_interpreted(); |
993 interval_data_ref()->inc_interpreted(); |
994 record_interpreted_tick(thread, fr, tp_code, FlatProfiler::bytecode_ticks); |
994 record_interpreted_tick(thread, fr, tp_code, FlatProfiler::bytecode_ticks); |
995 return; |
995 return; |
996 } |
996 } |
1017 unknown_ticks_array[ut_running_frame] += 1; |
1017 unknown_ticks_array[ut_running_frame] += 1; |
1018 FlatProfiler::unknown_ticks += 1; |
1018 FlatProfiler::unknown_ticks += 1; |
1019 } |
1019 } |
1020 |
1020 |
1021 void ThreadProfiler::record_tick_for_calling_frame(JavaThread* thread, frame fr) { |
1021 void ThreadProfiler::record_tick_for_calling_frame(JavaThread* thread, frame fr) { |
1022 // The tick happend in VM code |
1022 // The tick happened in VM code |
1023 interval_data_ref()->inc_native(); |
1023 interval_data_ref()->inc_native(); |
1024 if (fr.is_interpreted_frame()) { |
1024 if (fr.is_interpreted_frame()) { |
1025 record_interpreted_tick(thread, fr, tp_native, FlatProfiler::bytecode_ticks_stub); |
1025 record_interpreted_tick(thread, fr, tp_native, FlatProfiler::bytecode_ticks_stub); |
1026 return; |
1026 return; |
1027 } |
1027 } |