Bug 745556 - Include shared library info in text profile dump for android symbolication. r=jmuizelaar

This commit is contained in:
Benoit Girard 2012-04-16 09:32:18 -04:00
parent d31fdd528e
commit 0c48158611
2 changed files with 4 additions and 1 deletions

View File

@ -372,6 +372,8 @@ private:
bool mJankOnly;
};
std::string GetSharedLibraryInfoString();
/**
* This is an event used to save the profile on the main thread
* to be sure that it is not being modified while saving.
@ -407,6 +409,7 @@ public:
stream.open(buff);
if (stream.is_open()) {
stream << *(t->GetPrimaryThreadProfile());
stream << "h-" << GetSharedLibraryInfoString() << std::endl;
stream.close();
LOG("Saved to " FOLDER "profile_TYPE_PID.txt");
} else {

View File

@ -105,7 +105,7 @@ AddSharedLibraryInfoToStream(std::ostream& aStream, SharedLibrary& aLib)
aStream << "}";
}
static std::string
std::string
GetSharedLibraryInfoString()
{
SharedLibraryInfo info = SharedLibraryInfo::GetInfoForSelf();