io.deephaven.engine.tablelogger.QueryOperationPerformanceLogLogger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-engine-table Show documentation
Show all versions of deephaven-engine-table Show documentation
Engine Table: Implementation and closely-coupled utilities
package io.deephaven.engine.tablelogger;
import io.deephaven.engine.table.impl.perf.QueryPerformanceNugget;
import io.deephaven.tablelogger.Row;
import io.deephaven.tablelogger.Row.Flags;
import org.jetbrains.annotations.NotNull;
import java.io.IOException;
import static io.deephaven.tablelogger.TableLogger.DEFAULT_INTRADAY_LOGGER_FLAGS;
/**
* Logs data that describes performance details on initialization times and memory usage of specific operations within
* queries.
*/
public interface QueryOperationPerformanceLogLogger {
default void log(@NotNull final QueryPerformanceNugget nugget) throws IOException {
log(DEFAULT_INTRADAY_LOGGER_FLAGS, nugget);
}
void log(@NotNull Row.Flags flags, @NotNull QueryPerformanceNugget nugget) throws IOException;
enum Noop implements QueryOperationPerformanceLogLogger {
INSTANCE;
@Override
public void log(
@NotNull final Flags flags,
@NotNull final QueryPerformanceNugget nugget) throws IOException {}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy