Class ProfilingService
- java.lang.Object
-
- org.apache.flink.runtime.util.profiler.ProfilingService
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ProfilingService extends Object implements Closeable
Create and keep profiling requests with rolling policy.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ProfilingServicegetInstance(org.apache.flink.configuration.Configuration configs)CompletableFuture<Collection<ProfilingInfo>>getProfilingList(String resourceID)StringgetProfilingResultDir()CompletableFuture<ProfilingInfo>requestProfiling(String resourceID, long duration, ProfilingInfo.ProfilingMode mode)
-
-
-
Method Detail
-
getInstance
public static ProfilingService getInstance(org.apache.flink.configuration.Configuration configs)
-
requestProfiling
public CompletableFuture<ProfilingInfo> requestProfiling(String resourceID, long duration, ProfilingInfo.ProfilingMode mode)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getProfilingList
public CompletableFuture<Collection<ProfilingInfo>> getProfilingList(String resourceID)
-
getProfilingResultDir
public String getProfilingResultDir()
-
-