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
diff --git a/src/monitor_android.cc b/src/monitor_android.cc
index 95dd397..39dc524 100644
--- a/src/monitor_android.cc
+++ b/src/monitor_android.cc
@@ -78,7 +78,7 @@
// 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.