com.eg.agent.android.instrumentation.API.AsyncTaskInstrumentation Maven / Gradle / Ivy
package com.eg.agent.android.instrumentation.API;
import android.os.AsyncTask;
import com.eg.agent.android.trace.TraceMachine;
import java.util.concurrent.Executor;
public class AsyncTaskInstrumentation {
private static final String categoryParams = "AsyncTask";
private static final String APItype= "AsyncTask";
public static final AsyncTask execute(AsyncTask task, Params... params) {
TraceMachine.enterMethod("AsyncTask#execute", categoryParams,APItype);
task.getStatus();
TraceMachine.exitMethod();
return task.execute(params);
}
public static final AsyncTask executeOnExecutor(AsyncTask task, Executor exec, Params... params) {
TraceMachine.enterMethod("AsyncTask#executeOnExecutor", categoryParams,APItype);
TraceMachine.exitMethod();
return task.executeOnExecutor(exec, params);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy