TracingConfig
  public
  
  
  
  class
  TracingConfig
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.webkit.TracingConfig | 
Holds tracing configuration information and predefined settings.
Summary
| Nested classes | |
|---|---|
| 
        
        
        
        
        class | TracingConfig.BuilderBuilder used to create  | 
| Constants | |
|---|---|
| int | CATEGORIES_ALLPredefined set of categories, includes all categories enabled by default in chromium. | 
| int | CATEGORIES_ANDROID_WEBVIEWPredefined set of categories typically useful for analyzing WebViews. | 
| int | CATEGORIES_FRAME_VIEWERPredefined set of categories for studying difficult rendering performance problems. | 
| int | CATEGORIES_INPUT_LATENCYPredefined set of categories for analyzing input latency issues. | 
| int | CATEGORIES_JAVASCRIPT_AND_RENDERINGPredefined set of categories for analyzing javascript and rendering issues. | 
| int | CATEGORIES_NONEIndicates that there are no predefined categories. | 
| int | CATEGORIES_RENDERINGPredefined set of categories for analyzing rendering issues. | 
| int | CATEGORIES_WEB_DEVELOPERPredefined set of categories typically useful for web developers. | 
| int | RECORD_CONTINUOUSLYRecord trace events continuously using an internal ring buffer. | 
| int | RECORD_UNTIL_FULLRecord trace events until the internal tracing buffer is full. | 
| Public methods | |
|---|---|
| 
        
        
        
        
        
        List<String> | 
      getCustomIncludedCategories()
      Returns the list of included custom category patterns for this configuration. | 
| 
        
        
        
        
        
        int | 
      getPredefinedCategories()
      Returns a bitmask of the predefined category sets of this configuration. | 
| 
        
        
        
        
        
        int | 
      getTracingMode()
      Returns the tracing mode of this configuration. | 
| Inherited methods | |
|---|---|
Constants
CATEGORIES_ALL
public static final int CATEGORIES_ALL
Predefined set of categories, includes all categories enabled by default in chromium. Use with caution: this setting may produce large trace output.
Constant Value: 1 (0x00000001)
CATEGORIES_ANDROID_WEBVIEW
public static final int CATEGORIES_ANDROID_WEBVIEW
Predefined set of categories typically useful for analyzing WebViews. Typically includes "android_webview" and "Java" categories.
Constant Value: 2 (0x00000002)
CATEGORIES_FRAME_VIEWER
public static final int CATEGORIES_FRAME_VIEWER
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.
Constant Value: 64 (0x00000040)
CATEGORIES_INPUT_LATENCY
public static final int CATEGORIES_INPUT_LATENCY
Predefined set of categories for analyzing input latency issues. Typically includes "input", "renderer.scheduler" categories.
Constant Value: 8 (0x00000008)
CATEGORIES_JAVASCRIPT_AND_RENDERING
public static final int CATEGORIES_JAVASCRIPT_AND_RENDERING
Predefined set of categories for analyzing javascript and rendering issues. Typically includes "blink", "compositor", "gpu", "renderer.scheduler" and "v8" categories.
Constant Value: 32 (0x00000020)
CATEGORIES_NONE
public static final int CATEGORIES_NONE
Indicates that there are no predefined categories.
Constant Value: 0 (0x00000000)
CATEGORIES_RENDERING
public static final int CATEGORIES_RENDERING
Predefined set of categories for analyzing rendering issues. Typically includes "blink", "compositor" and "gpu" categories.
Constant Value: 16 (0x00000010)
CATEGORIES_WEB_DEVELOPER
public static final int CATEGORIES_WEB_DEVELOPER
Predefined set of categories typically useful for web developers. Typically includes "blink", "compositor", "renderer.scheduler" and "v8" categories.
Constant Value: 4 (0x00000004)
RECORD_CONTINUOUSLY
public static final int RECORD_CONTINUOUSLY
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.
Constant Value: 1 (0x00000001)
RECORD_UNTIL_FULL
public static final int RECORD_UNTIL_FULL
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.
Constant Value: 0 (0x00000000)
Public methods
getCustomIncludedCategories
public List<String> getCustomIncludedCategories ()
Returns the list of included custom category patterns for this configuration.
| Returns | |
|---|---|
| List<String> | Empty list if no custom category patterns are specified.
 This value cannot be null. | 
getPredefinedCategories
public int getPredefinedCategories ()
Returns a bitmask of the predefined category sets of this configuration.
| Returns | |
|---|---|
| int | Bitmask of predefined category sets.
 Value is either 0or a combination ofCATEGORIES_NONE,CATEGORIES_ALL,CATEGORIES_ANDROID_WEBVIEW,CATEGORIES_WEB_DEVELOPER,CATEGORIES_INPUT_LATENCY,CATEGORIES_RENDERING,CATEGORIES_JAVASCRIPT_AND_RENDERING, andCATEGORIES_FRAME_VIEWER | 
getTracingMode
public int getTracingMode ()
Returns the tracing mode of this configuration.
| Returns | |
|---|---|
| int | The tracing mode of this configuration.
 Value is RECORD_UNTIL_FULL, orRECORD_CONTINUOUSLY | 
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-02-10 UTC.
