-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Activity Open trace logging and tests
- Loading branch information
1 parent
c14681e
commit c336053
Showing
20 changed files
with
1,107 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...api/src/main/kotlin/io/embrace/android/embracesdk/internal/capture/activity/OpenEvents.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package io.embrace.android.embracesdk.internal.capture.activity | ||
|
||
/** | ||
* The relevant stages in the lifecycle of Activities pertaining to observing the performance of their loading | ||
*/ | ||
public interface OpenEvents { | ||
|
||
/** | ||
* When a previously in-progress Activity Open trace should be abandoned, and that the component managing | ||
* the trace recording should prepare itself to start tracing the opening of a new Activity instance. | ||
*/ | ||
public fun resetTrace(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the app is no longer in a state where it is trying to open up a new Activity | ||
*/ | ||
public fun hibernate(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity is entering the CREATE stage of its lifecycle. | ||
*/ | ||
public fun create(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity has exited the CREATE stage of its lifecycle. | ||
*/ | ||
public fun createEnd(instanceId: Int, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity is entering the START stage of its lifecycle. | ||
*/ | ||
public fun start(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity has exited the START stage of its lifecycle. | ||
*/ | ||
public fun startEnd(instanceId: Int, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity is entering the RESUME stage of its lifecycle. | ||
*/ | ||
public fun resume(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity has exited the RESUME stage of its lifecycle. | ||
*/ | ||
public fun resumeEnd(instanceId: Int, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity's first UI frame starts to be rendered. | ||
*/ | ||
public fun render(instanceId: Int, activityName: String, timestampMs: Long) | ||
|
||
/** | ||
* When the given Activity's first UI frame has been displayed. | ||
*/ | ||
public fun renderEnd(instanceId: Int, timestampMs: Long) | ||
|
||
public enum class OpenType(public val typeName: String) { | ||
COLD("cold"), HOT("hot") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.