Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

TracingConfig

open class TracingConfig
kotlin.Any
   ↳ androidx.webkit.TracingConfig

Holds tracing configuration information and predefined settings for TracingController. This class is functionally equivalent to android.webkit.TracingConfig.

Summary

Nested classes

open

Builder used to create TracingConfig objects.

Constants

static Int

Predefined set of categories, includes all categories enabled by default in chromium.

static Int

Predefined set of categories typically useful for analyzing WebViews.

static Int

Predefined set of categories for studying difficult rendering performance problems.

static Int

Predefined set of categories for analyzing input latency issues.

static Int

Predefined set of categories for analyzing javascript and rendering issues.

static Int

Indicates that there are no predefined categories.

static Int

Predefined set of categories for analyzing rendering issues.

static Int

Predefined set of categories typically useful for web developers.

static Int

Record trace events continuously using an internal ring buffer.

static Int

Record trace events until the internal tracing buffer is full.

Public methods

open MutableList<String!>

Returns the list of included custom category patterns for this configuration.

open Int

Returns a bitmask of the predefined category sets of this configuration.

open Int

Returns the tracing mode of this configuration.

Constants

CATEGORIES_ALL

static val CATEGORIES_ALL: Int

Predefined set of categories, includes all categories enabled by default in chromium. Use with caution: this setting may produce large trace output.

Value: android.webkit.TracingConfig.CATEGORIES_ALL

CATEGORIES_ANDROID_WEBVIEW

static val CATEGORIES_ANDROID_WEBVIEW: Int

Predefined set of categories typically useful for analyzing WebViews. Typically includes "android_webview" and "Java" categories.

Value: android.webkit.TracingConfig.CATEGORIES_ANDROID_WEBVIEW

CATEGORIES_FRAME_VIEWER

static val CATEGORIES_FRAME_VIEWER: Int

Predefined set of categories for studying difficult rendering performance problems. Typically includes "blink", "compositor", "gpu", "renderer.scheduler", "v8" and some other compositor categories which are disabled by default.

Value: android.webkit.TracingConfig.CATEGORIES_FRAME_VIEWER

CATEGORIES_INPUT_LATENCY

static val CATEGORIES_INPUT_LATENCY: Int

Predefined set of categories for analyzing input latency issues. Typically includes "input", "renderer.scheduler" categories..

Value: android.webkit.TracingConfig.CATEGORIES_INPUT_LATENCY

CATEGORIES_JAVASCRIPT_AND_RENDERING

static val CATEGORIES_JAVASCRIPT_AND_RENDERING: Int

Predefined set of categories for analyzing javascript and rendering issues. Typically includes "blink", "compositor", "gpu", "renderer.scheduler" and "v8" categories.

Value: android.webkit.TracingConfig.CATEGORIES_JAVASCRIPT_AND_RENDERING

CATEGORIES_NONE

static val CATEGORIES_NONE: Int

Indicates that there are no predefined categories.

Value: android.webkit.TracingConfig.CATEGORIES_NONE

CATEGORIES_RENDERING

static val CATEGORIES_RENDERING: Int

Predefined set of categories for analyzing rendering issues. Typically includes "blink", "compositor" and "gpu" categories.

Value: android.webkit.TracingConfig.CATEGORIES_RENDERING

CATEGORIES_WEB_DEVELOPER

static val CATEGORIES_WEB_DEVELOPER: Int

Predefined set of categories typically useful for web developers. Typically includes "blink", "compositor", "renderer.scheduler" and "v8" categories.

Value: android.webkit.TracingConfig.CATEGORIES_WEB_DEVELOPER

RECORD_CONTINUOUSLY

static val RECORD_CONTINUOUSLY: Int

Record trace events continuously using an internal ring buffer. Default tracing mode. Overwrites old events if they exceed buffer capacity. Uses less memory than the RECORD_UNTIL_FULL mode. Depending on the implementation typically allows up to 64k events to be stored.

Value: android.webkit.TracingConfig.RECORD_CONTINUOUSLY

RECORD_UNTIL_FULL

static val RECORD_UNTIL_FULL: Int

Record trace events until the internal tracing buffer is full. Typically the buffer memory usage is larger than RECORD_CONTINUOUSLY. Depending on the implementation typically allows up to 256k events to be stored.

Value: android.webkit.TracingConfig.RECORD_UNTIL_FULL

Public methods

getCustomIncludedCategories

@NonNull open fun getCustomIncludedCategories(): MutableList<String!>

Returns the list of included custom category patterns for this configuration.

Return
MutableList<String!>: Empty list if no custom category patterns are specified.

getPredefinedCategories

open fun getPredefinedCategories(): Int

Returns a bitmask of the predefined category sets of this configuration.

Return
Int: Bitmask of predefined category sets.

getTracingMode

open fun getTracingMode(): Int

Returns the tracing mode of this configuration.

Return
Int: The tracing mode of this configuration.