
Configuration Item | Description |
Task Name | Configuration task name. |
Condition | The configuration task sets filtering criteria to restrict that only devices meeting the criteria can pull configurations. By default, the filtering criteria are empty, meaning no restrictions apply. The filtering criteria follow an AND relationship, requiring all conditions of the current configuration task to be met. The filtering criteria for the current task will be displayed in the configuration task list. For supported configuration items, see Filtering Criteria. |
Priority | Describes how to select a task when a user matches multiple configuration tasks. Currently, the task with the highest priority is selected. If multiple matched tasks have the same priority, the configuration system will randomly select one task to return. |
Remarks | None. |
Configuration content. | Configuration content involves detailed configuration items such as SDK sampling and collection mode. For specifics, see Configuration Content. |











BuglyBuilder#appVersionType.BuglyConfig#setBuildConfig API.
BuglyConfig#setAppVersion API.

Build.VERSION.RELEASE field during SDK initialization, with formats such as "12", "13", "9", "8.0.0".[[UIDevice currentDevice] systemVersion] field during SDK initialization, with formats such as "14.1", "16.1".
BuglyBuilder#deviceModel. If not set by the application, Build.MODEL will be automatically read during initialization.

BuglyBuilder#userId. If not set by the application, the user ID will be empty.BuglyInitParam#setUserId API. If not set by the application, the user ID will be empty.
BuglyBuilder#uniqueId. If not set by the application, the SDK first reads it from the SP cache. If the cache is empty, a random ID is generated and stored in the cache. Once the user sets the device ID, the SDK overrides the SP cache with the application-set device ID.BuglyInitParam#setDeviceId API. If not set by the application, the device ID will be empty. This field is used to collect statistics on device crash rate, device FOOM rate, and other device abnormal rates. Be sure to set it.


Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Crash Monitoring | "crash" | "cus_file_sample_ratio" | The sampling rate for reporting custom files, with a value range of [0,1]. 1 indicates report all 0 indicates do not report Otherwise, sampled reporting is applied; by default, report all. |
Error Reporting | "error_report" | "sample_ratio" | Error Reporting sampling rate, with a value range of [0,1]. 1 indicates report all 0 indicates do not report Otherwise, user-sampled reporting is applied; by default, report all. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Launch Metrics | "launch_metric" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Lag Metrics | "looper_metric" | "sample_ratio" | Device sampling rate, with a value range of [0,1] 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Lag Monitoring | "looper_stack" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "event_sample_ratio" | Message sampling rate, with a value range of [0,1]. 1 indicates to monitor all UI thread messages. 0 indicates to monitor no UI thread messages. Otherwise, specify a probability to sample and monitor messages from UI threads. |
| | "stack_interval_ms" | Lag stack capture interval, in ms. |
| | "threshold" | Lag detection threshold, in ms. |
| | "detect_strategy" | Lag monitoring granularity. Currently supports msg and vsync, with msg as the default value. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Memory Peak | "memory_quantile" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Java Memory Leak Monitoring | "activity_leak" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable Activity leak monitoring with a specified sampling probability. |
| | "event_sample_ratio" | Event sampling rate, with a value range of [0,1]. 1 indicates that when Activity's onDestroy is called or when startInspectLeakObj is called, fully enable Java object leak inspection. 0 indicates do not enable Java object leak inspection; Otherwise, enable Java object leak inspection with a specified sampling probability; For example, a value of 0.5 indicates that when Activity's onDestroy is called or when startInspectLeakObj is called, there is a 50% probability of enabling Java object leak inspection. |
Java Memory Peak Monitoring | "java_memory_ceiling_hprof" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable Java memory peak monitoring with a specified sampling probability. |
| | "threshold" | Memory peak threshold percentage, with a value range of [0,100], indicates that when the threshold percentage of Java's maximum available memory is reached, it is identified as a memory peak event. |
| | "event_sample_ratio" | Event Sampling Rate, with a value range of [0,1], controls the probability of reporting events when Java memory reaches its peak threshold. |
Big Graph Analytics | "big_bitmap" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "threshold" | Image over-limit threshold, value range: (100, Integer maximum value), image over-limit rate = Length of decoded image × Width of decoded image / (Length of display area × Width of display area) × 100. Large bitmap detection checks whether the decoded image size exceeds its display area. For example, a value of 150 indicates that when the image over-limit rate > 150, it is considered an abnormal situation and should be reported. |
Native Memory Peak Monitoring | "native_memory" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "event_sample_ratio" | Event Sampling Rate, with a value range of [0,1], controls the sampling rate for dumping memory and reporting data when memory usage reaches the peak threshold (VSS or PSS peak). |
FD Peak Monitoring | "fd_leak" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "event_sample_ratio" | Event Sampling Rate, with a value range of [0,1], controls the probability of reporting events when FD reaches its peak threshold. |
| | "threshold" | The threshold for determining FD peak, representing the number of FDs that reach the peak limit. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Process Exit Analysis | "application_exit" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "event_sample_ratio" | Attachment Sampling Rate, with a value range of [0,1], indicates that when tombs attachments or trace attachments exist, they are reported with a specified probability. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Traffic Abnormal Analysis | "traffic_detail" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "total_limit_in_megabyte" | The traffic consumed within 10 minutes exceeds the configured threshold for abnormal traffic, in MB. |
| | "mobile_limit_in_megabyte" | The mobile traffic consumed within 10 minutes has exceeded the configured threshold for abnormal mobile traffic, in MB. |
| | "backend_limit_in_megabyte" | The traffic consumed in the background scenario within 10 minutes exceeds the configured threshold for abnormal background traffic, in MB. |
| | "custom_limit_in_megabyte" | The traffic consumed in the business-defined custom scenario within 10 minutes exceeds the configured threshold, in MB. |
| | "filter_local_address" | Whether to filter local addresses in abnormal traffic monitoring, which takes a Boolean value. |
| | "metric_event_sample_ratio" | 10-minute traffic metrics event sampling rate, with a value range of [0,1] |
| | "error_event_sample_ratio" | 10-minute traffic abnormal events sampling rate, with a value range of [0,1] |
traffic metrics | "traffic" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
foreground battery metrics | "battery_metric" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "daily_report_limit" | Maximum daily report count for monitoring items |
Battery consumption factor metrics | "battery_ele_metric" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "daily_report_limit" | Maximum daily report count for monitoring items |
Abnormal cases of battery consumption factors | "battery_element" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "daily_report_limit" | Maximum daily report count for monitoring items |
| | "single_location_duration_in_ms" | Maximum duration for single GPS use, in ms |
| | "total_location_duration_in_ms" | Total GPS update duration within 10 minutes, in ms |
| | "max_location_open_num" | Maximum count of GPS activations within 10 minutes |
| | "single_wakelock_duration_in_ms" | Maximum duration for single WakeLock use, in ms |
| | "total_wakelock_duration_in_ms" | Maximum total WakeLock usage duration within 10 minutes, in ms |
| | "max_wakelock_open_num" | Maximum count of WakeLock activations within 10 minutes |
| | "max_alarm_open_num" | Maximum count of alarm activations within 10 minutes |
| | "max_wakeup_alarm_open_num" | Maximum count of wakeup-type alarm activations within 10 minutes |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Network Quality Monitoring | "net_quality" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "daily_report_limit" | Maximum daily report count for monitoring items |
| | "max_batch_count" | One report can contain at most [X] request detail entries. |
| | "min_batch_count" | One report must contain at least [X] request detail entries. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
ASan Memory Error Detection | "asan" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "slot_size" | Allocatable memory Slot Page size, in KB. The larger the size, the greater the memory overhead. It is recommended to use the default value. |
| | "slot_count" | Allocatable memory Slot Page count. The more pages, the more memory allocated for error detection, but the greater the memory overhead. It is recommended to use the default value. |
| | "max_sample_gap_count" | The maximum value for cyclic sampling of random numbers. The higher the value, the lower the probability of sampling hits during memory allocation. |
| | "left_side_align_percentage" | The probability of left-aligned memory allocation in the ASan Memory Pool, ranging from [0,100]. A lower value makes it easier to detect Overflow issues, while a higher value facilitates Underflow detection. |
| | "right_side_perfect_align" | Whether to forgo page alignment for right-aligned memory allocations in the ASan Memory Pool. Disabling page alignment facilitates Overflow detection but may introduce potential crash risks. |
| | "ignore_overlapped_reading" | Whether to ignore ASan errors of the repeated access type. |
| | "target_so_patterns" | The SO files to be detected. If left empty, all SO files are detected by default, supporting regular expressions. When memory issues can be traced to specific SOs, it is recommended to set this value to reduce stability problems. |
| | "ignore_so_patterns" | The SO files to be ignored. If not empty, ignore no SO files by default, supporting regular expressions. |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Page loading time | "page_launch" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Field | Type | Description | Default Value | Example | Supported Version |
suspend_threshold_ms | int | Suspension rate threshold | 200 | 200 | - |
scroll_fluency_enable | bool | Swiping fps reporting | false | true | - |
scroll_fluency_beacon_report_sample | float | Swiping fps Lighthouse reporting sampling, 0-1, precision 0.0001 | 0 | 0.1 | - |
fluency_beacon_report_sample | float | fps&Suspension rate Lighthouse reporting sampling, 0-1, precision 0.0001 | 0 | 0.1 | - |
Field | Type | Description | Default Value | Example | Supported Version |
stuck_threshold_ms | int | Lag threshold, must be greater than 0. | 200 | 200 | - |
optimization_backtrace_ratio | float | Stack trace sampling ratio, range [0, 1], precision 0.0001. Takes effect only when lag stack trace capturing is enabled. | 0 | 0.5 | (2.7.45, 2.7.47] |
skip_first_frame | bool | Whether to enable first-frame stack trace optimization. When enabled, the first two frames are skipped, and stack capturing begins from the third frame. Value: 0 or 1 | 0 | 0 | (2.7.45, 2.7.47] |
Field | Type | Description | Default Value | Example | Supported Version |
threads | array | Sub-thread configuration group | Refer to the field meaning descriptions below | - | version 2.7.29 and above |
Field | Type | Description | Default Value | Example | Supported Version |
stuck_threshold_ms | int | Lag threshold, must be greater than 0. | 200 | 200 | version 2.7.29 and above |
sample_ratio | float | Enable sampling rate, with a value range of 0 - 1. | 1 | 1 | version 2.7.29 and above |
enabled | bool | Whether to enable sub-threads | true | true | version 2.7.29 and above |
thread_name | string | thread name | - | - | version 2.7.29 and above |
Field | Type | Description | Default Value | Example | Supported Version |
deadlock_threshold_ms | int | Freeze threshold, must be greater than 0. | 5000 | 5000 | - |
backtrace_mode | int | Stutter stack sampling mode: 0:CThreadStack 1: Preliminarily optimized stack sampling logic 2: Secondarily optimized stack sampling logic | 0 | 1 | version 2.7.47 and above |
backtrace_mode_ratio | float | Stack trace sampling ratio, range [0, 1], precision 0.0001. Takes effect only when lag stack trace capturing is enabled and backtrace_mode is configured. Local Sampling | 0 | 0.4 | version 2.7.47 and above |
skip_first_frame | bool | Whether to enable first-frame stack trace optimization. After enabling, it will skip the first two frames and launch stack capturing from the third frame. Boolean value, 0 or 1 | 0 | 1 | version 2.7.47 and above |
backtrace_frequency | int | Stack sampling frequency: captures stack every x frames. High-end devices: 1, Low-end devices: 3. Recommended values | 3 | 3 | version 2.7.49 and above |
Field | Type | Description | Default Value | Example | Supported Version |
sample_ratio | float | launch abnormal monitoring sampling rate | 0 | 0.4 | version 2.7.49 and above |
launch_deadlock_threshold_ms | int | Slow-launch threshold, must be greater than 0. | 5000 | 5000 | version 2.7.49 and above |
launch_backtrace_threshold_ms | int | Threshold for launch stack sampling, must be greater than 0. | 3000 | 3000 | version 2.7.49 and above |
Field | Type | Description | Default Value | Example | Supported Version |
vmmap | bool | vmmap information collection switch | true | false | [2.7.5 - 2.7.21], deprecated after 2.7.21, changed to frequency control. |
vmmap_update_interval | int | vmmap information collection interval in seconds, where 0 indicates disabled | 3 | 3 | version 2.7.21 and above |
strict_foom_judgment | bool | foom strict mode switch | true | true | version 2.7.49-beta.4 and above |
app_life_cycle_swizzle | bool | Whether to enable hook app delegate switch | true | true | version 2.7.50-beta and above |
vmmap_with_malloc_zone | bool | Whether vmmap information collection includes malloc zone information | false | false | version 2.7.51 and above |
memory_check_interval | int | memory information update frequency interval | 1000 | 1000 | version 2.7.53 and above |
Field | Type | Description | Default Value | Example | Supported Version |
malloc_stack_enable_sample_ratio | float | foom sampling ratio, 0-1, SDK random sampling, precision 0.0001 | 0 | 0.1 | - |
backtrace_recording_enable | bool | Enable asynchronous call stack recording, which incurs some performance overhead and is disabled by default. | false | false | version 2.7.45 and above |
malloc_stack_storage_threshold | int | The minimum threshold for storing local memory stack records in cache; when the cumulative allocation of a single stack reaches this value, it will be recorded. | 524288 | 524288 | - |
malloc_size_record_thresholds | array | The array of size threshold ranges for local memory stack records; stack records are captured when the size of memory allocated by the user falls within one of these ranges. | Refer to the field meaning descriptions below | - | version 2.7.17 and above |
Field | Type | Description | Default Value | Example | Supported Version |
min | long | The minimum value of a single memory allocation that needs to be recorded, representing the lower bound of the threshold range (inclusive of the min value). | 8192 | 8192 | version 2.7.17 and above |
max | long | The maximum value of a single memory allocation that needs to be recorded, representing the upper bound of the threshold range (exclusive of the max value). | LONG_MAX | 112589 | version 2.7.17 and above |
stack_cache_max_count | long | The maximum number of stack records | 300000 | 300000 | version 2.7.17 and above |
Field | Type | Description | Default Value | Example | Supported Version |
filter_list | array | The allowlist, where VCs in the list are not monitored. | [] | ["BuglyViewController"] | version 2.7.51 and above |
Field | Type | Description | Default Value | Example | Supported Version |
chuck_threshold | int | The threshold for identifying large memory allocations | ULONG_MAX | 10485760 | - |
Field | Type | Description | Default Value | Example | Supported Version |
dump_threshold | int | Memory map dump threshold: when physical memory usage reaches this value, it triggers the memory map dump operation. | ULONG_MAX | 4294967296 | - |
dump_threshold_rate | float | The memory map dump threshold ratio: when this value is set, the product of the device's physical memory value and this ratio will be used as the threshold for triggering memory map dumps. | 0 | 0.4 | version 2.7.39.2 and above |
dump_type | string | The memory map dump type. Optional values include DumpFull, DumpLight, and DumpTiny. Any value not listed above is considered DumpNone. | DumpFull | DumpTiny | version 2.7.39.2 and above |
Field | Type | Description | Default Value | Example | Supported Version |
use_jce_report | bool | Whether json reporting is used | 0 | 0 | version 2.7.50 and above |
disable_unhandled_crash | bool | Whether reporting custom crash stacks is supported | 1 | 0 | version 2.7.51 and above |
Field | Type | Description | Default Value | Example | Supported Version |
use_jce_report | bool | Whether json reporting is used | 0 | 0 | version 2.7.50 and above |
Field | Type | Description | Default Value | Example | Supported Version |
minidump_file_size | int | The size of the minidump mmap file | 256 * 1024 | 256 * 1024 | version 2.7.55 and above |
Field | Type | Description | Default Value | Example | Supported Version |
enabled | bool | The switch returned by the backend does not require configuration. | 0 | 0 | (-, 2.7.49) |
application_resume_beacon_report_sample | float | Sampling Configuration for Reporting Background-to-Foreground Time Consumption in Lighthouse | 0 | 0.1 | (-, 2.7.49) |
cold_launch_beacon_report_sample | float | Cold launch Lighthouse reporting sampling switch | 0 | 0.1 | (-, 2.7.49) |
Field | Type | Description | Default Value | Example | Supported Version |
enabled | bool | The switch returned by the backend does not require configuration. | 1 | 0 | version 2.7.49 and above |
cold_launch_beacon_report_sample | float | Cold launch Lighthouse reporting sampling switch | 0 | 0.1 | version 2.7.49 and above |
Field | Type | Description | Default Value | Example | Supported Version |
enabled | bool | The switch returned by the backend does not require configuration. | 1 | 0 | version 2.7.49 and above |
application_resume_beacon_report_sample | float | Sampling Configuration for Reporting Background-to-Foreground Time Consumption in Lighthouse | 0 | 0.1 | version 2.7.49 and above |
Field | Type | Description | Default Value | Example | Supported Version |
available_report_types | array | Configuration for allowed metrickit reporting types. Defaults to empty; no filtering is performed if empty or not configured. | null | - | version 2.7.55-beta.6 and above |
{"name": "common.dau","sample_ratio": 1,"daily_report_limit": 10000}
Field | Type | Description | Default Value | Example | Supported Version |
max_operation_seq_count | uint | Maximum number of records: 50 | 20 | 50 | version 2.7.3 and above |
Field | Type | Description | Default Value | Example | Supported Version |
total_limit_in_megabyte | uint | Total traffic abnormal threshold (MB) | 500 | 500 | version 2.7.51 and above |
mobile_limit_in_megabyte | uint | Cellular network abnormal threshold (MB) | 200 | 200 | version 2.7.51 and above |
background_limit_in_megabyte | uint | Background network abnormal threshold (MB) | 50 | 50 | version 2.7.51 and above |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Error Reporting | "error_report" | "sample_ratio" | Error Reporting sampling rate, with a value range of [0,1]. 1 indicates report all 0 indicates do not report Other indicates user sampling reporting |
Monitoring Items | Configuration Item | Configuration Parameter | Parameter Description |
Lag Metrics | "looper_metric" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
| | "daily_report_limit" | Device daily reporting limit for Lag Metrics, default value 300 times |
| | "loop_time_out_threshold" | Setting the threshold for timeout messages in Lag Metrics statistics, default value 150 ms |
Lag Instances | "looper_stack" | "sample_ratio" | Device sampling rate, with a value range of [0,1]. 1 indicates enable all 0 indicates disable all Otherwise, enable with a specified probability. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback