Android EventLog

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26366149/article/details/77887796

系统根据log类型,分为main,radio,events,system,crash

frameworks/base/core/java/android/util/Log.java //用于记录main log
frameworks/base/core/java/android/util/Slog.java //用于记录framework log
frameworks/base/telephony/java/android/telephony/Rlog.java //用于记录radio log
frameworks/base/core/java/com/android/internal/os/RuntimeInit.java //内部记录了crash log

adb logcat -b main
adb logcat -b radio

 adb logcat -b system

EventLog 标签主要是存放在解释

1、frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags文件中

2、system/core/logcat/Event.logtags

 
 
# An activity is being finished:
1730001 am_finish_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3)
18# A task is being brought to the front of the screen:
1930002 am_task_to_front (User|1|5),(Task|1|5)
20# An existing activity is being given a new intent:
2130003 am_new_intent (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3),(URI|3),(Flags|1|5)
22# A new task is being created:
2330004 am_create_task (User|1|5),(Task ID|1|5)
24# A new activity is being created in an existing task:
2530005 am_create_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3),(URI|3),(Flags|1|5)
26# An activity has been resumed into the foreground but was not already running:
2730006 am_restart_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
28# An activity has been resumed and is now in the foreground:
2930007 am_resume_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
30# Application Not Responding
3130008 am_anr (User|1|5),(pid|1|5),(Package Name|3),(Flags|1|5),(reason|3)
32# Activity launch time
3330009 am_activity_launch_time (User|1|5),(Token|1|5),(Component Name|3),(time|2|3)
34# Application process bound to work
3530010 am_proc_bound (User|1|5),(PID|1|5),(Process Name|3)
36# Application process died
3730011 am_proc_died (User|1|5),(PID|1|5),(Process Name|3)
38# The Activity Manager failed to pause the given activity.
3930012 am_failed_to_pause (User|1|5),(Token|1|5),(Wanting to pause|3),(Currently pausing|3)
40# Attempting to pause the current activity
4130013 am_pause_activity (User|1|5),(Token|1|5),(Component Name|3)
42# Application process has been started
4330014 am_proc_start (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3),(Type|3),(Component|3)
44# An application process has been marked as bad
4530015 am_proc_bad (User|1|5),(UID|1|5),(Process Name|3)
46# An application process that was bad is now marked as good
4730016 am_proc_good (User|1|5),(UID|1|5),(Process Name|3)
48# Reporting to applications that memory is low
4930017 am_low_memory (Num Processes|1|1)
50# An activity is being destroyed:
5130018 am_destroy_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3)
52# An activity has been relaunched, resumed, and is now in the foreground:
5330019 am_relaunch_resume_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
54# An activity has been relaunched:
5530020 am_relaunch_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
56# The activity's onPause has been called.
5730021 am_on_paused_called (User|1|5),(Component Name|3)
58# The activity's onResume has been called.
5930022 am_on_resume_called (User|1|5),(Component Name|3)
60# Kill a process to reclaim memory.
6130023 am_kill (User|1|5),(PID|1|5),(Process Name|3),(OomAdj|1|5),(Reason|3)
62# Discard an undelivered serialized broadcast (timeout/ANR/crash)
6330024 am_broadcast_discard_filter (User|1|5),(Broadcast|1|5),(Action|3),(Receiver Number|1|1),(BroadcastFilter|1|5)
6430025 am_broadcast_discard_app (User|1|5),(Broadcast|1|5),(Action|3),(Receiver Number|1|1),(App|3)
65# A service is being created
6630030 am_create_service (User|1|5),(Service Record|1|5),(Name|3),(UID|1|5),(PID|1|5)
67# A service is being destroyed
6830031 am_destroy_service (User|1|5),(Service Record|1|5),(PID|1|5)
69# A process has crashed too many times, it is being cleared
7030032 am_process_crashed_too_much (User|1|5),(Name|3),(PID|1|5)
71# An unknown process is trying to attach to the activity manager
7230033 am_drop_process (PID|1|5)
73# A service has crashed too many times, it is being stopped
7430034 am_service_crashed_too_much (User|1|5),(Crash Count|1|1),(Component Name|3),(PID|1|5)
75# A service is going to be restarted after its process went away
7630035 am_schedule_service_restart (User|1|5),(Component Name|3),(Time|2|3)
77# A client was waiting for a content provider, but its process was lost
7830036 am_provider_lost_process (User|1|5),(Package Name|3),(UID|1|5),(Name|3)
79# The activity manager gave up on a new process taking too long to start
8030037 am_process_start_timeout (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3)
81
82# Unhandled exception
8330039 am_crash (User|1|5),(PID|1|5),(Process Name|3),(Flags|1|5),(Exception|3),(Message|3),(File|3),(Line|1|5)
84# Log.wtf() called
8530040 am_wtf (User|1|5),(PID|1|5),(Process Name|3),(Flags|1|5),(Tag|3),(Message|3)
86
87# User switched
8830041 am_switch_user (id|1|5)
89
90# Activity fully drawn time
9130042 am_activity_fully_drawn_time (User|1|5),(Token|1|5),(Component Name|3),(time|2|3)
92
93# Activity focused
9430043 am_focused_activity (User|1|5),(Component Name|3)
95
96# Home Stack brought to front or rear
9730044 am_home_stack_moved (User|1|5),(To Front|1|5),(Top Stack Id|1|5),(Focused Stack Id|1|5),(Reason|3)
98
99# Running pre boot receiver
10030045 am_pre_boot (User|1|5),(Package|3)
101
102# Report collection of global memory state
10330046 am_meminfo (CachedKb|2|2),(FreeKb|2|2),(ZramKb|2|2),(KernelKb|2|2),(NativeKb|2|2)
104# Report collection of memory used by a process
10530047 am_pss (Pid|1|5),(UID|1|5),(Process Name|3),(PssKb|2|2),(UssKb|2|2)
106

152# Out of memory for surfaces.
15331000 wm_no_surface_memory (Window|3),(PID|1|5),(Operation|3)
154# Task created.
15531001 wm_task_created (TaskId|1|5),(StackId|1|5)
156# Task moved to top (1) or bottom (0).
15731002 wm_task_moved (TaskId|1|5),(ToTop|1),(Index|1)
158# Task removed with source explanation.
15931003 wm_task_removed (TaskId|1|5),(Reason|3)
160# Stack created.
16131004 wm_stack_created (StackId|1|5),(RelativeBoxId|1|5),(Position|1),(Weight|1|6)
162# Home stack moved to top (1) or bottom (0).
16331005 wm_home_stack_moved (ToTop|1)
164# Stack removed.
16531006 wm_stack_removed (StackId|1|5)


5# interaction logs
6524287 sysui_view_visibility (category|1|5),(visible|1|6)
7524288 sysui_action (category|1|5),(pkg|3)
8524290 sysui_count (name|3),(increment|1)
9524291 sysui_histogram (name|3),(bucket|1)















 
 

 
 
 

猜你喜欢

转载自blog.csdn.net/qq_26366149/article/details/77887796