Include JNI details in the SIGQUIT output.
Also include the original command line (framework apps deliberately clobber
their argv[]).
Change-Id: I63e04cb637fa89764e8963f3d086806ae230e953
diff --git a/src/heap.cc b/src/heap.cc
index b4bc7ce..02e3ac7 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -51,7 +51,7 @@
}
}
-static bool GenerateImage(const std::string image_file_name) {
+static bool GenerateImage(const std::string& image_file_name) {
const std::string boot_class_path_string(Runtime::Current()->GetBootClassPathString());
std::vector<std::string> boot_class_path;
Split(boot_class_path_string, ':', boot_class_path);
@@ -660,7 +660,7 @@
void Heap::DumpForSigQuit(std::ostream& os) {
os << "Heap: " << GetPercentFree() << "% free, "
<< PrettySize(num_bytes_allocated_) << "/" << PrettySize(GetTotalMemory())
- << "; " << num_objects_allocated_ << " objects";
+ << "; " << num_objects_allocated_ << " objects\n";
}
size_t Heap::GetPercentFree() {