TracingConfig
class TracingConfig
Holds tracing configuration information and predefined settings for TracingController.
This class is functionally equivalent to android.webkit.TracingConfig.
Summary
Nested types |
|---|
class TracingConfig.BuilderBuilder used to create |
Constants |
|
|---|---|
const Int |
CATEGORIES_ALL = 1Predefined set of categories, includes all categories enabled by default in chromium. |
const Int |
Predefined set of categories typically useful for analyzing WebViews. |
const Int |
Predefined set of categories for studying difficult rendering performance problems. |
const Int |
Predefined set of categories for analyzing input latency issues. |
const Int |
Predefined set of categories for analyzing javascript and rendering issues. |
const Int |
CATEGORIES_NONE = 0Indicates that there are no predefined categories. |
const Int |
CATEGORIES_RENDERING = 16Predefined set of categories for analyzing rendering issues. |
const Int |
Predefined set of categories typically useful for web developers. |
const Int |
Record trace events continuously using an internal ring buffer. |
const Int |
Record trace events until the internal tracing buffer is full. |
Public functions |
|
|---|---|
(Mutable)List<String!> |
Returns the list of included custom category patterns for this configuration. |
Int |
Returns a bitmask of the predefined category sets of this configuration. |
Int |
Returns the tracing mode of this configuration. |
Constants
CATEGORIES_ALL
const val CATEGORIES_ALL = 1: Int
Predefined set of categories, includes all categories enabled by default in chromium. Use with caution: this setting may produce large trace output.
CATEGORIES_ANDROID_WEBVIEW
const val CATEGORIES_ANDROID_WEBVIEW = 2: Int
Predefined set of categories typically useful for analyzing WebViews. Typically includes "android_webview" and "Java" categories.
CATEGORIES_FRAME_VIEWER
const val CATEGORIES_FRAME_VIEWER = 64: 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.
CATEGORIES_INPUT_LATENCY
const val CATEGORIES_INPUT_LATENCY = 8: Int
Predefined set of categories for analyzing input latency issues. Typically includes "input", "renderer.scheduler" categories..
CATEGORIES_JAVASCRIPT_AND_RENDERING
const val CATEGORIES_JAVASCRIPT_AND_RENDERING = 32: Int
Predefined set of categories for analyzing javascript and rendering issues. Typically includes "blink", "compositor", "gpu", "renderer.scheduler" and "v8" categories.
CATEGORIES_NONE
const val CATEGORIES_NONE = 0: Int
Indicates that there are no predefined categories.
CATEGORIES_RENDERING
const val CATEGORIES_RENDERING = 16: Int
Predefined set of categories for analyzing rendering issues. Typically includes "blink", "compositor" and "gpu" categories.
CATEGORIES_WEB_DEVELOPER
const val CATEGORIES_WEB_DEVELOPER = 4: Int
Predefined set of categories typically useful for web developers. Typically includes "blink", "compositor", "renderer.scheduler" and "v8" categories.
RECORD_CONTINUOUSLY
const val RECORD_CONTINUOUSLY = 1: 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.
RECORD_UNTIL_FULL
const val RECORD_UNTIL_FULL = 0: 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.
Public functions
getCustomIncludedCategories
fun getCustomIncludedCategories(): (Mutable)List<String!>
Returns the list of included custom category patterns for this configuration.
getPredefinedCategories
fun getPredefinedCategories(): Int
Returns a bitmask of the predefined category sets of this configuration.
| Returns | |
|---|---|
Int |
Bitmask of predefined category sets. |
getTracingMode
fun getTracingMode(): Int
Returns the tracing mode of this configuration.
| Returns | |
|---|---|
Int |
The tracing mode of this configuration. |