| Index: Source/platform/heap/Profiling.h
|
| diff --git a/Source/core/fetch/StyleSheetResource.h b/Source/platform/heap/Profiling.h
|
| similarity index 76%
|
| copy from Source/core/fetch/StyleSheetResource.h
|
| copy to Source/platform/heap/Profiling.h
|
| index bee7247cbed5303decb437b75119609678ddfb94..e6720e2b5df4a1f740e40709031a2aebe61ebc8a 100644
|
| --- a/Source/core/fetch/StyleSheetResource.h
|
| +++ b/Source/platform/heap/Profiling.h
|
| @@ -28,24 +28,20 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef StyleSheetResource_h
|
| -#define StyleSheetResource_h
|
| +#ifndef Profiling_h
|
| +#define Profiling_h
|
|
|
| -#include "core/fetch/TextResource.h"
|
| +// Name for about:tracing events
|
| +#define GC_PROFILE_GROUP "BlinkGC"
|
|
|
| -namespace WebCore {
|
| +// Extended profiling of memory usage.
|
| +#define GC_PROFILE_HEAP (ENABLE(GC_PROFILING) && true)
|
| +#define GC_PROFILE_HEAP_PAGE_DUMP_THRESHOLD 0
|
|
|
| -class StyleSheetResourceClient;
|
| +// Extended profiling of GC marking/tracing
|
| +#define GC_PROFILE_MARKING (ENABLE(GC_PROFILING) && false)
|
|
|
| -class StyleSheetResource : public TextResource {
|
| -public:
|
| - typedef StyleSheetResourceClient ClientType;
|
| -
|
| - StyleSheetResource(const ResourceRequest& request, Type type, const String& mimeType, const String& charset)
|
| - : TextResource(request, type, mimeType, charset)
|
| - { }
|
| -};
|
| -
|
| -}
|
| +// Dependencies for several profiling usages.
|
| +#define GC_PROFILE_DEFINE_CLASSNAME (GC_PROFILE_HEAP || GC_PROFILE_MARKING)
|
|
|
| #endif
|
|
|