summaryrefslogtreecommitdiffstats
path: root/vm/AllocTracker.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-04 20:04:51 +0000
committerSteve Block <steveblock@google.com>2012-01-05 20:28:22 +0000
commit4308417beec548c2b2c06ecec4f7f4a965b09fb2 (patch)
treeae52b2baeb944c711598c085500bd2544aa78eea /vm/AllocTracker.cpp
parentab35b50311951feea3782151dd5422ee944685c2 (diff)
downloadandroid_dalvik-4308417beec548c2b2c06ecec4f7f4a965b09fb2.tar.gz
android_dalvik-4308417beec548c2b2c06ecec4f7f4a965b09fb2.tar.bz2
android_dalvik-4308417beec548c2b2c06ecec4f7f4a965b09fb2.zip
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ic558031c75b3702d90eb78bd730501ae5d3c077b
Diffstat (limited to 'vm/AllocTracker.cpp')
-rw-r--r--vm/AllocTracker.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/vm/AllocTracker.cpp b/vm/AllocTracker.cpp
index a9c764431..8ea3c058d 100644
--- a/vm/AllocTracker.cpp
+++ b/vm/AllocTracker.cpp
@@ -111,7 +111,7 @@ bool dvmEnableAllocTracker()
dvmLockMutex(&gDvm.allocTrackerLock);
if (gDvm.allocRecords == NULL) {
- LOGI("Enabling alloc tracker (%d entries, %d frames --> %d bytes)",
+ ALOGI("Enabling alloc tracker (%d entries, %d frames --> %d bytes)",
kNumAllocRecords, kMaxAllocRecordStackDepth,
sizeof(AllocRecord) * kNumAllocRecords);
gDvm.allocRecordHead = gDvm.allocRecordCount = 0;
@@ -351,7 +351,7 @@ static bool populateStringTables(PointerSet* classNames,
idx = (idx + 1) & (kNumAllocRecords-1);
}
- LOGI("class %d/%d, method %d/%d, file %d/%d",
+ ALOGI("class %d/%d, method %d/%d, file %d/%d",
dvmPointerSetGetCount(classNames), classCount,
dvmPointerSetGetCount(methodNames), methodCount,
dvmPointerSetGetCount(fileNames), fileCount);
@@ -555,7 +555,7 @@ bool dvmGenerateTrackedAllocationReport(u1** pData, size_t* pDataLen)
totalSize += computeStringTableSize(classNames);
totalSize += computeStringTableSize(methodNames);
totalSize += computeStringTableSize(fileNames);
- LOGI("Generated AT, size is %zd/%zd", baseSize, totalSize);
+ ALOGI("Generated AT, size is %zd/%zd", baseSize, totalSize);
/*
* Part 3: allocate a buffer and generate the output.
@@ -613,11 +613,11 @@ void dvmDumpTrackedAllocations(bool enable)
int idx = headIndex();
int count = gDvm.allocRecordCount;
- LOGI("Tracked allocations, (head=%d count=%d)",
+ ALOGI("Tracked allocations, (head=%d count=%d)",
gDvm.allocRecordHead, count);
while (count--) {
AllocRecord* pRec = &gDvm.allocRecords[idx];
- LOGI(" T=%-2d %6d %s",
+ ALOGI(" T=%-2d %6d %s",
pRec->threadId, pRec->size, pRec->clazz->descriptor);
if (true) {
@@ -627,10 +627,10 @@ void dvmDumpTrackedAllocations(bool enable)
const Method* method = pRec->stackElem[i].method;
if (dvmIsNativeMethod(method)) {
- LOGI(" %s.%s (Native)",
+ ALOGI(" %s.%s (Native)",
method->clazz->descriptor, method->name);
} else {
- LOGI(" %s.%s +%d",
+ ALOGI(" %s.%s +%d",
method->clazz->descriptor, method->name,
pRec->stackElem[i].pc);
}