public class V8RuntimeObserverAggregateV8SharedMemoryStatistics extends java.lang.Object implements IV8RuntimeObserver<V8SharedMemoryStatistics>
V8SharedMemoryStatistics across a pool. In multi-cage pointer
compression builds every isolate group has its own read-only space, so the
meaningful pool-wide view is a sum rather than an average.| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_CAPACITY |
protected static int |
DEFAULT_TIMEOUT_MILLIS |
protected java.util.List<java.util.concurrent.CompletableFuture<V8SharedMemoryStatistics>> |
futures |
protected int |
timeoutMillis |
| Constructor and Description |
|---|
V8RuntimeObserverAggregateV8SharedMemoryStatistics() |
V8RuntimeObserverAggregateV8SharedMemoryStatistics(int capacity,
int timeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
V8SharedMemoryStatistics |
getResult()
Gets result.
|
void |
observe(V8Runtime v8Runtime)
Observe the input V8 runtime.
|
void |
reset()
Reset.
|
protected static final int DEFAULT_CAPACITY
protected static final int DEFAULT_TIMEOUT_MILLIS
protected final java.util.List<java.util.concurrent.CompletableFuture<V8SharedMemoryStatistics>> futures
protected final int timeoutMillis
public V8RuntimeObserverAggregateV8SharedMemoryStatistics()
public V8RuntimeObserverAggregateV8SharedMemoryStatistics(int capacity,
int timeoutMillis)
public V8SharedMemoryStatistics getResult()
IV8RuntimeObservergetResult in interface IV8RuntimeObserver<V8SharedMemoryStatistics>public void observe(V8Runtime v8Runtime)
IV8RuntimeObserverobserve in interface IV8RuntimeObserver<V8SharedMemoryStatistics>v8Runtime - the V8 runtimepublic void reset()
IV8RuntimeObserverreset in interface IV8RuntimeObserver<V8SharedMemoryStatistics>