diff options
Diffstat (limited to 'runtime/monitor_android.cc')
-rw-r--r-- | runtime/monitor_android.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/monitor_android.cc b/runtime/monitor_android.cc index 1dd60f8d78..a5978523e9 100644 --- a/runtime/monitor_android.cc +++ b/runtime/monitor_android.cc @@ -49,8 +49,15 @@ static char* EventLogWriteString(char* dst, const char* value, size_t len) { return dst + len; } -void Monitor::LogContentionEvent(Thread* self, uint32_t wait_ms, uint32_t sample_percent, - const char* owner_filename, int32_t owner_line_number) { +void Monitor::LogContentionEvent(Thread* self, + uint32_t wait_ms, + uint32_t sample_percent, + ArtMethod* owner_method, + uint32_t owner_dex_pc) { + const char* owner_filename; + int32_t owner_line_number; + TranslateLocation(owner_method, owner_dex_pc, &owner_filename, &owner_line_number); + // Emit the event list length, 1 byte. char eventBuffer[174]; char* cp = eventBuffer; |