From 33dc7717cd16592bcc825350bea6305be9eb2ea1 Mon Sep 17 00:00:00 2001 From: jeffhao Date: Wed, 9 Nov 2011 17:54:24 -0800 Subject: Changed monitor to contain method and return pc values for logging. The monitor saves method and return pc for logging, instead of the source filename and line number. This saves it from having to do a lookup every time a fat lock is acquired. Change-Id: I88871abc90626b9e4dffc9677c093fd24937385c --- src/monitor_android.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/monitor_android.cc') diff --git a/src/monitor_android.cc b/src/monitor_android.cc index 95dd397042..39dc5244d1 100644 --- a/src/monitor_android.cc +++ b/src/monitor_android.cc @@ -78,7 +78,7 @@ void Monitor::LogContentionEvent(Thread* self, uint32_t wait_ms, uint32_t sample // Emit the source code file name, <= 37 bytes. const char* filename; uint32_t line_number; - self->GetCurrentLocation(filename, line_number); + TranslateLocation(self->GetCurrentMethod(), self->GetCurrentReturnPc(), filename, line_number); cp = EventLogWriteString(cp, filename, strlen(filename)); // Emit the source code line number, 5 bytes. -- cgit v1.2.3-59-g8ed1b