Lines Matching defs:string
21 * heap, and some analysis tools require that the class and string data
31 #include <string.h>
520 // Write the string and class tables, and any stack traces, to the header.
522 // jhat also requires the string table appear before class table and stack traces.
523 // However, WriteStackTraces() can modify the string table, so it's necessary to call
546 string ID
555 for (const std::pair<std::string, HprofStringId>& p : strings_) {
556 const std::string& string = p.first;
561 // STRING format:
562 // ID: ID for this string
563 // U1*: UTF8 characters for string (NOT null terminated)
566 __ AddUtf8String(string.c_str());
596 // Make sure that we've assigned a string ID for this class' name
616 HprofStringId LookupStringId(mirror::String* string) SHARED_REQUIRES(Locks::mutator_lock_) {
617 return LookupStringId(string->ToModifiedUtf8());
620 HprofStringId LookupStringId(const char* string) {
621 return LookupStringId(std::string(string));
624 HprofStringId LookupStringId(const std::string& string) {
625 auto it = strings_.find(string);
630 strings_.Put(string, id);
640 // U1: NUL-terminated magic string.
684 // ID: method name string ID
685 // ID: method signature string ID
686 // ID: source file name string ID
778 std::string msg(StringPrintf("Couldn't dump heap; writing \"%s\" failed: %s",
861 std::string filename_;
876 SafeMap<std::string, HprofStringId> strings_;
1188 // This outputs the size of an empty string.
1189 __ AddU4(sizeof(mirror::String));
1315 // What we will use for the string value if the object is a string.
1349 // Add value field for String if necessary.
1351 mirror::String* s = obj->AsString();
1353 // If string is empty, use an object-aligned address within the string for the value.
1371 mirror::String* s = obj->AsString();