summaryrefslogtreecommitdiffstats
path: root/third_party/tcmalloc/chromium/src/deep-heap-profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/tcmalloc/chromium/src/deep-heap-profile.h')
-rw-r--r--third_party/tcmalloc/chromium/src/deep-heap-profile.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/third_party/tcmalloc/chromium/src/deep-heap-profile.h b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
index c2ee897..0544b31 100644
--- a/third_party/tcmalloc/chromium/src/deep-heap-profile.h
+++ b/third_party/tcmalloc/chromium/src/deep-heap-profile.h
@@ -36,7 +36,7 @@
#include <typeinfo>
#endif
-#if defined(__linux__)
+#if defined(__linux__) || defined(_WIN32) || defined(_WIN64)
#define USE_DEEP_HEAP_PROFILE 1
#endif
@@ -166,6 +166,23 @@ class DeepHeapProfile {
MemoryResidenceInfoGetterInterface();
};
+#if defined(_WIN32) || defined(_WIN64)
+ // TODO(peria): Implement this class.
+ class MemoryInfoGetterWindows : public MemoryResidenceInfoGetterInterface {
+ public:
+ MemoryInfoGetterWindows(PageFrameType) {}
+ virtual ~MemoryInfoGetterWindows() {}
+
+ virtual void Initialize();
+
+ virtual size_t CommittedSize(uint64 first_address,
+ uint64 last_address,
+ TextBuffer* buffer) const;
+
+ virtual bool IsPageCountAvailable() const;
+ };
+#endif // defined(_WIN32) || defined(_WIN64)
+
#if defined(__linux__)
// Implements MemoryResidenceInfoGetterInterface for Linux.
class MemoryInfoGetterLinux : public MemoryResidenceInfoGetterInterface {