Package org.apache.hadoop.hbase.http
Class BinaryBackend
java.lang.Object
org.apache.hadoop.hbase.http.BinaryBackend
- All Implemented Interfaces:
ProfilerBackend
Backend that invokes the async-profiler binary (
asprof / profiler.sh) as an
external process. Requires ASYNC_PROFILER_HOME to be set.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Cleans up any resources (e.g.executeStart(ProfileServlet.ProfileRequest request, File outputFile) Executes a profiling start command and returns the profiler's response.executeStop(ProfileServlet.ProfileRequest request, File outputFile) Executes a profiling stop/dump command.
-
Field Details
-
LOG
-
profilerHome
-
process
-
-
Constructor Details
-
BinaryBackend
BinaryBackend(String profilerHome)
-
-
Method Details
-
executeStart
public String executeStart(ProfileServlet.ProfileRequest request, File outputFile) throws IOException Description copied from interface:ProfilerBackendExecutes a profiling start command and returns the profiler's response.- Specified by:
executeStartin interfaceProfilerBackend- Throws:
IOException
-
executeStop
public String executeStop(ProfileServlet.ProfileRequest request, File outputFile) throws IOException Description copied from interface:ProfilerBackendExecutes a profiling stop/dump command.- Specified by:
executeStopin interfaceProfilerBackend- Throws:
IOException
-
destroy
Description copied from interface:ProfilerBackendCleans up any resources (e.g. kills a running process). Called on servlet destroy.- Specified by:
destroyin interfaceProfilerBackend
-