| Index: third_party/WebKit/Source/platform/text/CompressibleString.cpp
|
| diff --git a/third_party/WebKit/Source/platform/text/CompressibleString.cpp b/third_party/WebKit/Source/platform/text/CompressibleString.cpp
|
| index 38e6c09f41e1978f53a41ac1f73072b8307fd3ce..3b7f6c394ca847483967aeea680b931481344c80 100644
|
| --- a/third_party/WebKit/Source/platform/text/CompressibleString.cpp
|
| +++ b/third_party/WebKit/Source/platform/text/CompressibleString.cpp
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "platform/text/CompressibleString.h"
|
|
|
| -#include "public/platform/Platform.h"
|
| +#include "platform/Histogram.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/WTFThreadData.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -97,7 +97,8 @@ enum CompressibleStringCountType {
|
|
|
| static void recordCompressibleStringCount(CompressibleStringCountType type)
|
| {
|
| - Platform::current()->histogramEnumeration("Memory.CompressibleStringCount", type, CompressibleStringCountTypeMax + 1);
|
| + DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, sringTypeHistogram, new EnumerationHistogram("Memory.CompressibleStringCount", CompressibleStringCountTypeMax + 1));
|
| + sringTypeHistogram.count(type);
|
| }
|
|
|
| // compressString does nothing but collect UMA so far.
|
|
|