diff options
author | James Dong <jdong@google.com> | 2010-02-25 10:06:32 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-02-25 10:06:32 -0800 |
commit | 1edee16200cb377b7862b30aa5c387d9686023db (patch) | |
tree | 618dd7a1dbd9cbfafe8654451fd9f09e84fc9e65 /media/libmediaplayerservice | |
parent | d2d947bc8717697e983062147b51b5a0e307b84f (diff) | |
download | frameworks_av-1edee16200cb377b7862b30aa5c387d9686023db.zip frameworks_av-1edee16200cb377b7862b30aa5c387d9686023db.tar.gz frameworks_av-1edee16200cb377b7862b30aa5c387d9686023db.tar.bz2 |
Add some space and total memory amount to the memory dump from the media server process.
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerService.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp index 50dad33..c26d682 100644 --- a/media/libmediaplayerservice/MediaPlayerService.cpp +++ b/media/libmediaplayerservice/MediaPlayerService.cpp @@ -430,6 +430,8 @@ void memStatus(int fd, const Vector<String16>& args) snprintf(buffer, SIZE, " Allocation count %i\n", count); result.append(buffer); + snprintf(buffer, SIZE, " Total memory %i\n", totalMemory); + result.append(buffer); AllocEntry * entries = new AllocEntry[count]; @@ -478,7 +480,7 @@ void memStatus(int fd, const Vector<String16>& args) for (size_t i = 0; i < count; i++) { AllocEntry *e = &entries[i]; - snprintf(buffer, SIZE, "size %8i, dup %4i", e->size, e->dups); + snprintf(buffer, SIZE, "size %8i, dup %4i, ", e->size, e->dups); result.append(buffer); for (size_t ct = 0; (ct < backtraceSize) && e->backtrace[ct]; ct++) { if (ct) { |