mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-30 02:01:59 -05:00
32 lines
637 B
Java
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();
|
|
}
|