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 an ANR has been identified, but before the system would attempt to kill the app. |
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 an ANR has been identified, but before the system would attempt to kill the app. The trigger does not necessarily indicate that the app was killed due to the 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 2025-03-13 UTC.
TMZ Celebrity News – Breaking Stories, Videos & Gossip
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
- Exclusive TMZ interviews and court updates
- Viral celebrity videos and candid photos
- Trending gossip and entertainment news