#ifndef SCANN_OSS_WRAPPERS_SCANN_MALLOC_EXTENSION_H_
#define SCANN_OSS_WRAPPERS_SCANN_MALLOC_EXTENSION_H_
#include <stddef.h>
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
namespace research_scann {
namespace tcmalloc {
class MallocExtension {
public:
static bool GetNumericProperty(absl::string_view property, size_t* value) {
return false;
}
static absl::optional<size_t> GetNumericProperty(absl::string_view property) {
return std::nullopt;
}
static void ReleaseMemoryToSystem(size_t num_bytes) {}
static size_t GetAllocatedSize(const void* p) { return 0; }
};
} }
#endif