2025-01-19 15:44:28 -08:00

32 lines
637 B
Java

/*
* HPPC
*
* Copyright (C) 2010-2024 Carrot Search s.c. and contributors
* All rights reserved.
*
* Refer to the full license file "LICENSE.txt":
* https://github.com/carrotsearch/hppc/blob/master/LICENSE.txt
*/
package com.carrotsearch.hppc;
/**
* Anything that could be accounted for memory usage
*
* <p>Partly forked from Lucene tag releases/lucene-solr/8.5.1
*/
public interface Accountable {
/**
* Allocated memory estimation
*
* @return Ram allocated in bytes
*/
long ramBytesAllocated();
/**
* Bytes that is actually been used
*
* @return Ram used in bytes
*/
long ramBytesUsed();
}