1# Copyright (c) 2022-2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: HIVIEWDFX 15 16APP_EVENT_RECEIVE: 17 __BASE: {type: STATISTIC, level: MINOR, desc: Number of times that an application successfully subscribes to APP_CRASH or APP_FREEZE through hiappevent, preserve: true} 18 BUNDLENAME: {type: STRING, desc: bundle name} 19 BUNDLEVERSION: {type: STRING, desc: bundle version} 20 CALLBACK: {type: STRING, desc: callback} 21 EVENTTYPE: {type: UINT8, desc: event type} 22 CRASHTYPE: {type: STRING, desc: crash type} 23 WATCHERNAME: {type: STRING, desc: watcher name} 24 EXTERNALLOG: {type: BOOL, desc: Whether there are log files} 25 FAULTCNT: {type: UINT8, desc: Number of successful callbacks} 26 RUNNINGID: {type: STRING, desc: running ID} 27 28APP_EVENT_SEND: 29 __BASE: {type: STATISTIC, level: MINOR, desc: Number of times that the HiView successfully shares the APP_CRASH or APP_FREEZE event to an application, preserve: true} 30 BUNDLENAME: {type: STRING, desc: bundle name} 31 BUNDLEVERSION: {type: STRING, desc: bundle version} 32 EVENTTYPE: {type: UINT8, desc: event type} 33 EXTERNALLOG: {type: BOOL, desc: Whether there are log files} 34 FAULTCNT: {type: UINT8, desc: Number of APP_CRASH or APP_FREEZE events that are successfully shared by the HiView to applications} 35 RUNNINGID: {type: STRING, desc: running ID} 36 CRASH_TYPE: {type: STRING, desc: crash type} 37 38PLUGIN_LOAD: 39 __BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: load hiview plugin} 40 NAME: {type: STRING, desc: plugin name} 41 RESULT: {type: UINT32, desc: result of plugin loading} 42 DURATION: {type: UINT32, desc: loading duration } 43 44PLUGIN_UNLOAD: 45 __BASE: {type: BEHAVIOR, level: CRITICAL, tag: hiviewPlugin, desc: unload hiview plugin} 46 NAME: {type: STRING, desc: plugin name} 47 RESULT: {type: UINT32, desc: result of plugin unloading} 48 DURATION: {type: UINT32, desc: unloading duration } # Not supported, default value 0. 49 50PLUGIN_STATS: 51 __BASE: {type: STATISTIC, level: CRITICAL, tag: hiviewPlugin, desc: statistics of events handled by plugins} 52 NAME: {type: STRING, desc: plugin name} 53 AVG_TIME: {type: UINT32, desc: average time spent} 54 TOP_K_TIME: {type: UINT32, arrsize: 3, desc: K times that took the most time} 55 TOP_K_EVENT: {type: STRING, arrsize: 3, desc: K events that took the most time} 56 TOTAL: {type: UINT32, desc: total events} 57 58PLUGIN_FAULT: 59 __BASE: {type: FAULT, level: CRITICAL, tag: hiviewPlugin, desc: plugin fault} 60 NAME: {type: STRING, desc: plugin name} 61 REASON: {type: STRING, desc: reason of plugin fault} 62 63APP_USAGE: 64 __BASE: {type: STATISTIC, level: CRITICAL, tag: usageStats, desc: application usage statistics} 65 PACKAGE: {type: STRING, desc: package name} 66 VERSION: {type: STRING, desc: version name} 67 USAGE: {type: UINT32, desc: usage duration} 68 DATE: {type: STRING, desc: usage date} 69 TOTAL_START_NUM: {type: UINT32, desc: total start number} 70 71SYS_USAGE: 72 __BASE: {type: STATISTIC, level: CRITICAL, tag: usageStats, desc: system usage statistics} 73 START: {type: UINT64, desc: start time} 74 END: {type: UINT64, desc: end time} 75 POWER: {type: UINT64, desc: power_on duration} 76 RUNNING: {type: UINT64, desc: running duration} 77 78PROFILE_STAT: 79 __BASE: {type: STATISTIC, level: CRITICAL, desc: hisysevent profile status} 80 MAX_TOTAL_COUNT: {type: UINT32, desc: maximum total count} 81 MAX_TOTAL_SIZE: {type: UINT32, desc: maximum total size} 82 DOMAINS: {type: STRING, arrsize: 100, desc: measured domains} 83 DOMAIN_DETAIL: {type: UINT32, arrsize: 100, desc: domain detail} 84 TOTAL_COUNT: {type: UINT32, desc: total count} 85 TOTAL_SIZE: {type: UINT32, desc: total size} 86 BREAK_COUNT: {type: UINT8, desc: break count} 87 BREAK_DURATION: {type: UINT64, desc: break duration} 88 MIN_SPEED: {type: UINT32, desc: minimum speed} 89 MAX_SPEED: {type: UINT32, desc: maximum speed} 90 REAL_COUNT: {type: UINT32, arrsize: 10, desc: real time cost distribution} 91 PROCESS_COUNT: {type: UINT32, arrsize: 10, desc: process time cost distribution} 92 WAIT_COUNT: {type: UINT32, arrsize: 10, desc: wait count cost distribution} 93 FINISHED_COUNT: {type: UINT32, desc: finished count} 94 OVER_REAL_COUNT: {type: UINT32, desc: over real time benchmark count} 95 OVER_REAL_PCT: {type: UINT32, desc: over real time benchmark percentage} 96 OVER_PROC_COUNT: {type: UINT32, desc: over process time cost benchmark count} 97 OVER_PROC_PCT: {type: UINT32, desc: over process time cost percentage} 98 99BREAK: 100 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: hisysevent is break} 101 TOTAL_COUNT: {type: UINT32, desc: total count} 102 TOTAL_SIZE: {type: UINT32, desc: total size} 103 REAL_SPEED: {type: UINT32, desc: real time of handle hisysevent each second} 104 PROC_SPEED: {type: UINT32, desc: process time of handle hisysevent each second} 105 AVG_REAL_TIME: {type: DOUBLE, desc: average real time cost} 106 AVG_PROC_TIME: {type: DOUBLE, desc: average process time cost} 107 AVG_WAIT_TIME: {type: DOUBLE, desc: average wait time cost} 108 TOP_EVENT: {type: STRING, arrsize: 3, desc: topN events} 109 TOP_EVENT_COUNT: {type: UINT32, arrsize: 3, desc: count of topN events} 110 TOP_DOMAIN: {type: STRING, arrsize: 3, desc: topN domains} 111 TOP_DOMAIN_COUNT: {type: UINT32, arrsize: 3, desc: count of topN domains} 112 113RECOVER: 114 __BASE: {type: BEHAVIOR, level: CRITICAL, desc: hisysevent is recover} 115 DURATION: {type: INT64, desc: recover after break duration} 116 117XPOWER_STACKTRACE: 118 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: stack trace info} 119 TAGNAME: {type: STRING, desc: tag name} 120 INFO: {type: STRING, desc: additional information} 121 STACKTRACE: {type: STRING, desc: stack data} 122 123CPU_COLLECTION: 124 __BASE: {type: FAULT, level: MINOR, desc: HiView CPU Unified Collection Event} 125 126EVENTS_DAILY: 127 __BASE: {type: FAULT, level: MINOR, desc: HiView daily logging data collection} 128 DATE: {type: STRING, desc: date when logging data is collected} 129 130DUMP_CATCHER_STATS: 131 __BASE: {type: STATISTIC, level: MINOR, tag: HivewDFX, desc: dumpcatcher stats} 132 CALLER_PROCESS_NAME: {type: STRING, desc: caller process name} 133 CALLER_FUNC_NAME: {type: STRING, desc: caller elf name} 134 TARGET_PROCESS_NAME: {type: STRING, desc: target process name} 135 PID: {type: UINT32, desc: target process id} 136 RESULT: {type: UINT32, desc: result code} 137 SUMMARY: {type: STRING, desc: dumpcatcher msg if result is failure} 138 REQUEST_TIME: {type: UINT32, desc: the time when calling dumpcatcher} 139 OVERALL_TIME: {type: UINT32, desc: overall time of dumpcatacher} 140 SIGNAL_TIME: {type: UINT32, desc: from faultloggerd request to target signal handler} 141 DUMPER_START_TIME: {type: UINT32, desc: from signal handler to the entry of processdump} 142 UNWIND_TIME: {type: UINT32, desc: from signal handler to the entry of processdump} 143 144DEL_EXPORTED_EVENTS: 145 __BASE: {type: STATISTIC, level: MINOR, desc: record the periodic deletion of exported event files, preserve: true} 146 MODULE_NAME: {type: STRING, desc: name of the module which export the deleted event files} 147 BEGIN_SEQS: {type: INT64, arrsize: 100, desc: list consists of sysevent begin sequence stored in all of the deleted event files} 148 END_SEQS: {type: INT64, arrsize: 100, desc: list consists of sysevent end sequence stored in all of the deleted event files} 149 EVENT_NAMES: {type: STRING, arrsize: 100, desc: list consists of sysevent name stored in all of the deleted event files} 150 151READ_UNEXPECTED_SEQ: 152 __BASE: {type: FAULT, level: CRITICAL, desc: event for reading unexpected sequence from file , preserve: true} 153 SEQ: {type: INT64, desc: sequence read from event sequence file} 154 SEQ_BACKUP: {type: INT64, desc: sequence read from event sequence backup file} 155 MAX_SEQ_FROM_DB_FILE: {type: INT64, desc: maximum sequence read from local db file} 156 IS_SEQ_FILE_EXIST: {type: BOOL, desc: tag for whether event sequence file is exist} 157 IS_SEQ_BACKUP_FILE_EXIST: {type: BOOL, desc: tag for whether event sequence backup file is exist} 158