ProfilingTrigger
public
final
class
ProfilingTrigger
extends Object
java.lang.Object | |
↳ | android.os.ProfilingTrigger |
Encapsulates a single profiling trigger.
Summary
Nested classes | |
---|---|
class |
ProfilingTrigger.Builder
Builder class to create a |
Constants | |
---|---|
int |
TRIGGER_TYPE_ANR
Trigger occurs after the app was killed due to an ANR |
int |
TRIGGER_TYPE_APP_FULLY_DRAWN
Trigger occurs after |
int |
TRIGGER_TYPE_NONE
No trigger. |
Public methods | |
---|---|
int
|
getRateLimitingPeriodHours()
The requester set rate limiting period in hours. |
int
|
getTriggerType()
The trigger type indicates which event should trigger the requested profiling. |
Inherited methods | |
---|---|
Constants
TRIGGER_TYPE_ANR
public static final int TRIGGER_TYPE_ANR
Trigger occurs after the app was killed due to an ANR
Constant Value: 2 (0x00000002)
TRIGGER_TYPE_APP_FULLY_DRAWN
public static final int TRIGGER_TYPE_APP_FULLY_DRAWN
Trigger occurs after ERROR(/Activity#reportFullyDrawn)
is called for a cold start.
Constant Value: 1 (0x00000001)
TRIGGER_TYPE_NONE
public static final int TRIGGER_TYPE_NONE
No trigger. Used in ProfilingResult
for non trigger caused results.
Constant Value: 0 (0x00000000)
Public methods
getRateLimitingPeriodHours
public int getRateLimitingPeriodHours ()
The requester set rate limiting period in hours. The period is the minimum time the system should wait before providing another profiling result for the same trigger; actual time between events may be longer. If the rate limiting period is set to 0, no app-provided rate limiting will be used. This rate limiting is in addition to any system level rate limiting that may be applied.
Returns | |
---|---|
int |
getTriggerType
public int getTriggerType ()
The trigger type indicates which event should trigger the requested profiling.
Returns | |
---|---|
int |
Value is TRIGGER_TYPE_NONE , TRIGGER_TYPE_APP_FULLY_DRAWN , or TRIGGER_TYPE_ANR |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.