APISonar


com.argusapm.android.core.job.activity.ActivityInfo.time

> com > argusapm > android > core > job > activity > ActivityInfo > time
com APIs argusapm APIs android APIs core APIs job APIs activity APIs ActivityInfo APIs time APIs

Example 1
private void saveWarningInfo(ActivityInfo aInfo, int warningTime) {
        if (aInfo.time < warningTime) {
            return;
        }
        try {
            JSONObject obj = aInfo.toJson();
            obj.put("taskName", ApmTask.TASK_ACTIVITY);
            OutputProxy.output("LifeCycle:" + aInfo.getLifeCycleString() + ",cost time:" + aInfo.time, obj.toString());
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }