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/hprof/hprof.cc b/src/hprof/hprof.cc
index ccebca5..eacc73f 100644
--- a/src/hprof/hprof.cc
+++ b/src/hprof/hprof.cc
@@ -647,7 +647,7 @@
return LookupStringId(std::string(string));
}
-HprofStringId Hprof::LookupStringId(std::string string) {
+HprofStringId Hprof::LookupStringId(const std::string& string) {
StringMapIterator it = strings_.find(string);
if (it != strings_.end()) {
return it->second;
diff --git a/src/hprof/hprof.h b/src/hprof/hprof.h
index bcdbef8..e2f7ce1 100644
--- a/src/hprof/hprof.h
+++ b/src/hprof/hprof.h
@@ -196,7 +196,7 @@
HprofClassObjectId LookupClassId(Class* c);
HprofStringId LookupStringId(String* string);
HprofStringId LookupStringId(const char* string);
- HprofStringId LookupStringId(std::string string);
+ HprofStringId LookupStringId(const std::string& string);
HprofStringId LookupClassNameId(Class* c);
static HprofBasicType SignatureToBasicTypeAndSize(const char* sig, size_t* sizeOut);
static HprofBasicType PrimitiveToBasicTypeAndSize(Primitive::Type prim, size_t* sizeOut);