Package org.apache.wayang.profiler.java
Class OperatorProfiler
java.lang.Object
org.apache.wayang.profiler.java.OperatorProfiler
- Direct Known Subclasses:
BinaryOperatorProfiler,SinkProfiler,SourceProfiler,UnaryOperatorProfiler
Allows to instrument an
JavaExecutionOperator.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe result of a single profiling run. -
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected JavaExecutorprotected final org.apache.logging.log4j.Loggerprotected JavaExecutionOperatorprotected Supplier<JavaExecutionOperator> -
Constructor Summary
ConstructorsConstructorDescriptionOperatorProfiler(Supplier<JavaExecutionOperator> operatorGenerator, Supplier<?>... dataQuantumGenerators) -
Method Summary
Modifier and TypeMethodDescriptionprotected static CollectionChannel.Instanceprotected static CollectionChannel.InstancecreateChannelInstance(Collection<?> collection) protected voidevaluate(ChannelInstance[] inputs, ChannelInstance[] outputs) protected abstract longExecutes the profiling task.voidprepare(long... inputCardinalities) protected longprotected longrun()Executes and profiles the profiling task.
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger -
cpuMhz
public int cpuMhz -
operatorGenerator
-
operator
-
executor
-
dataQuantumGenerators
-
-
Constructor Details
-
OperatorProfiler
public OperatorProfiler(Supplier<JavaExecutionOperator> operatorGenerator, Supplier<?>... dataQuantumGenerators)
-
-
Method Details
-
prepare
public void prepare(long... inputCardinalities) -
run
Executes and profiles the profiling task. Requires that this instance is prepared. -
provideNetworkBytes
protected long provideNetworkBytes() -
provideDiskBytes
protected long provideDiskBytes() -
executeOperator
protected abstract long executeOperator()Executes the profiling task. Requires that this instance is prepared. -
createChannelInstance
-
createChannelInstance
-
getOperator
-
evaluate
-