mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #47 - Singleplayer lag fixes
This commit is contained in:
31
sources/main/java/com/carrotsearch/hppc/Accountable.java
Normal file
31
sources/main/java/com/carrotsearch/hppc/Accountable.java
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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();
|
||||
}
|
Reference in New Issue
Block a user