diff options
| author | 2011-11-09 17:54:24 -0800 | |
|---|---|---|
| committer | 2011-11-11 10:51:43 -0800 | |
| commit | 33dc7717cd16592bcc825350bea6305be9eb2ea1 (patch) | |
| tree | da0643d598a30d0fb3e63ba036f53cbda1e011fd /src/monitor_android.cc | |
| parent | 72db0d77d6c476c71c5bbaa14a80ca77f23a47f3 (diff) | |
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
Diffstat (limited to 'src/monitor_android.cc')
| -rw-r--r-- | src/monitor_android.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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. |