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.Logger
LOG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
static ProfilingService
getInstance(org.apache.flink.configuration.Configuration configs)
CompletableFuture<Collection<ProfilingInfo>>
getProfilingList(String resourceID)
String
getProfilingResultDir()
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getProfilingList
public CompletableFuture<Collection<ProfilingInfo>> getProfilingList(String resourceID)
-
getProfilingResultDir
public String getProfilingResultDir()
-
-