diff options
Diffstat (limited to 'Source/WTF/wtf/text/WTFString.cpp')
| -rw-r--r-- | Source/WTF/wtf/text/WTFString.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WTF/wtf/text/WTFString.cpp b/Source/WTF/wtf/text/WTFString.cpp index 6f14bcf56..b89acb663 100644 --- a/Source/WTF/wtf/text/WTFString.cpp +++ b/Source/WTF/wtf/text/WTFString.cpp @@ -27,6 +27,7 @@ #include <wtf/ASCIICType.h> #include <wtf/DataLog.h> #include <wtf/MathExtras.h> +#include <wtf/MemoryInstrumentation.h> #include <wtf/text/CString.h> #include <wtf/StringExtras.h> #include <wtf/Vector.h> @@ -820,6 +821,12 @@ String String::fromUTF8WithLatin1Fallback(const LChar* string, size_t size) return utf8; } +void String::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const +{ + MemoryClassInfo info(memoryObjectInfo, this); + info.addMember(m_impl); +} + // String Operations static bool isCharacterAllowedInBase(UChar c, int base) |
