@Test public void identifiesAFrameTimeMetricProperly() { String frameTime = generator.getFrameTimeMetricName(activity); assertTrue(extractor.isFrameTimeMetric(frameTime)); }
public String getFrameTimeMetricName(Activity activity) { String activityName = getActivityName(activity); return MetricRegistry.name(appendCrossMetricInfo( UI + SEPARATOR + FRAME_TIME + SEPARATOR + activityName + SEPARATOR + time.now())); }
MetricNamesGenerator { public String getFrameTimeMetricName(Activity activity) { String activityName = getActivityName(activity); return MetricRegistry.name(appendCrossMetricInfo( UI + SEPARATOR + FRAME_TIME + SEPARATOR + activityName + SEPARATOR + time.now())); } }
MetricNamesGenerator { public String getFrameTimeMetricName(Activity activity) { String activityName = getActivityName(activity); return MetricRegistry.name(appendCrossMetricInfo( UI + SEPARATOR + FRAME_TIME + SEPARATOR + activityName + SEPARATOR + time.now())); } MetricNamesGenerator(App app, Device device, Time time); }
MetricNamesGenerator { public String getFrameTimeMetricName(Activity activity) { String activityName = getActivityName(activity); return MetricRegistry.name(appendCrossMetricInfo( UI + SEPARATOR + FRAME_TIME + SEPARATOR + activityName + SEPARATOR + time.now())); } MetricNamesGenerator(App app, Device device, Time time); String getFrameTimeMetricName(Activity activity); String getOnActivityCreatedMetricName(Activity activity); String getOnActivityStartedMetricName(Activity activity); String getOnActivityResumedMetricName(Activity activity); String getActivityVisibleMetricName(Activity activity); String getOnActivityPausedMetricName(Activity activity); String getOnActivityStoppedMetricName(Activity activity); String getOnActivityDestroyedMetricName(Activity activity); String getBytesDownloadedMetricName(boolean isInBackground); String getBytesUploadedMetricName(boolean isInBackground); String getCPUUsageMetricName(boolean isInBackground); String getMemoryUsageMetricName(boolean forBackground); String getBytesAllocatedMetricName(boolean forBackground); String getInternalStorageWrittenBytes(boolean isInBackground); String getSharedPreferencesWrittenBytes(boolean isInBackground); }
MetricNamesGenerator { public String getFrameTimeMetricName(Activity activity) { String activityName = getActivityName(activity); return MetricRegistry.name(appendCrossMetricInfo( UI + SEPARATOR + FRAME_TIME + SEPARATOR + activityName + SEPARATOR + time.now())); } MetricNamesGenerator(App app, Device device, Time time); String getFrameTimeMetricName(Activity activity); String getOnActivityCreatedMetricName(Activity activity); String getOnActivityStartedMetricName(Activity activity); String getOnActivityResumedMetricName(Activity activity); String getActivityVisibleMetricName(Activity activity); String getOnActivityPausedMetricName(Activity activity); String getOnActivityStoppedMetricName(Activity activity); String getOnActivityDestroyedMetricName(Activity activity); String getBytesDownloadedMetricName(boolean isInBackground); String getBytesUploadedMetricName(boolean isInBackground); String getCPUUsageMetricName(boolean isInBackground); String getMemoryUsageMetricName(boolean forBackground); String getBytesAllocatedMetricName(boolean forBackground); String getInternalStorageWrittenBytes(boolean isInBackground); String getSharedPreferencesWrittenBytes(boolean isInBackground);  }