public class InMemoryInstrumentation extends Object implements Instrumentation
CREATED, DESTROYED
Constructor and Description |
---|
InMemoryInstrumentation() |
Modifier and Type | Method and Description |
---|---|
List<DataBufferLogEntry> |
getDataBufferLogEntries() |
Collection<LogEntry> |
getDestroyed()
Get the destroyed ndarrays
|
List<LogEntry> |
getEntries() |
Collection<LogEntry> |
getStillAlive()
Get the still alive ndarrays
|
boolean |
isDestroyed(String id)
Returns whether the given ndarray has been destroyed
|
void |
log(DataBuffer buffer)
Data buffer to log
|
void |
log(DataBuffer buffer,
String status)
Data buffer to log
|
void |
log(INDArray toLog)
Log the given ndarray
|
void |
log(INDArray toLog,
String status)
Log the given ndarray
|
void |
setDataBufferLogEntries(List<DataBufferLogEntry> dataBufferLogEntries) |
void |
setEntries(List<LogEntry> entries) |
public void log(INDArray toLog, String status)
Instrumentation
log
in interface Instrumentation
toLog
- the ndarray to logstatus
- the statuspublic void log(DataBuffer buffer, String status)
Instrumentation
log
in interface Instrumentation
buffer
- the buffer to logstatus
- the statuspublic void log(INDArray toLog)
Instrumentation
log
in interface Instrumentation
toLog
- the ndarray to logpublic void log(DataBuffer buffer)
Instrumentation
log
in interface Instrumentation
buffer
- the buffer to logpublic Collection<LogEntry> getStillAlive()
Instrumentation
getStillAlive
in interface Instrumentation
public Collection<LogEntry> getDestroyed()
Instrumentation
getDestroyed
in interface Instrumentation
public boolean isDestroyed(String id)
Instrumentation
isDestroyed
in interface Instrumentation
id
- the id to checkpublic List<DataBufferLogEntry> getDataBufferLogEntries()
public void setDataBufferLogEntries(List<DataBufferLogEntry> dataBufferLogEntries)
Copyright © 2016. All Rights Reserved.