Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1103)

Unified Diff: third_party/WebKit/Source/platform/WebMemoryAllocatorDump.h

Issue 2028483002: Remove abstract classes for memory dumper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/WebMemoryAllocatorDump.h
diff --git a/third_party/WebKit/Source/platform/WebMemoryAllocatorDump.h b/third_party/WebKit/Source/platform/WebMemoryAllocatorDump.h
deleted file mode 100644
index 8c2d224c416f809bd82645cbc14931e0c4f4e3c6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/WebMemoryAllocatorDump.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WebMemoryAllocatorDump_h
-#define WebMemoryAllocatorDump_h
-
-#include "public/platform/WebCommon.h"
-#include "public/platform/WebString.h"
-
-namespace blink {
-typedef uint64_t WebMemoryAllocatorDumpGuid;
-
-// A container which holds all the attributes of a particular dump for a given
-// allocator.
-class BLINK_PLATFORM_EXPORT WebMemoryAllocatorDump {
-public:
- virtual ~WebMemoryAllocatorDump();
-
- // Adds a scalar attribute to the dump.
- // Arguments:
- // name: name of the attribute. Typical names, emitted by most allocators
- // dump providers are: "size" and "objects_count".
- // units: the units for the attribute. Gives a hint to the trace-viewer UI
- // about the semantics of the attribute.
- // Currently supported values are "bytes" and "objects".
- // value: the value of the attribute.
- virtual void addScalar(const char* name, const char* units, uint64_t value) {}
- virtual void addScalarF(const char* name, const char* units, double value) {}
- virtual void addString(const char* name, const char* units, const WebString& value) {}
-
- // |guid| is an optional global dump identifier, unique across all processes
- // within the scope of a global dump. It is only required when using the
- // graph APIs (see AddOwnershipEdge) to express retention / suballocation or
- // cross process sharing. See crbug.com/492102 for design docs.
- // Subsequent MemoryAllocatorDump(s) with the same |absolute_name| are
- // expected to have the same guid.
- virtual WebMemoryAllocatorDumpGuid guid() const = 0;
-};
-
-} // namespace blink
-
-#endif // WebMemoryAllocatorDump_h
« no previous file with comments | « third_party/WebKit/Source/platform/SharedBuffer.cpp ('k') | third_party/WebKit/Source/platform/WebMemoryAllocatorDump.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698