本文主要是介绍功耗分析-正则搜索APP持锁时长超过1秒的语句,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1. 关键字来源
"total_time="这里表示应用持锁的时长
03-05 09:24:46.177 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=72943ms, ws/pid/uid=WorkSource{10175}/1120/1000, packageName=android
2. 正则语句-total_time=[\d]{4,}ms
检索出 88 个超过1秒的持锁日志
Vv3H1C-0_20190305_092253_+0800_logcat_-v_threadtime_-b_all.txt (88 matches)19,935: 03-05 09:24:46.177 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=72943ms, ws/pid/uid=WorkSource{10175}/1120/1000, packageName=android
20,176: 03-05 09:24:48.570 1120 27750 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1006ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
20,324: 03-05 09:24:51.820 1120 27771 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
20,369: 03-05 09:24:55.827 1120 1866 D PowerManagerService: releaseWakeLockInternal: lock=160850455 [AudioMix], flags=0x0, total_time=8046ms, ws/pid/uid=null/0/1041, packageName=audioserver
21,714: 03-05 09:25:12.775 1120 9937 D PowerManagerService: releaseWakeLockInternal: lock=70627573 [AudioMix], flags=0x0, total_time=2998ms, ws/pid/uid=null/0/1041, packageName=audioserver
21,717: 03-05 09:25:12.776 1120 9937 D PowerManagerService: releaseWakeLockInternal: lock=103046700 [AudioMix], flags=0x0, total_time=3001ms, ws/pid/uid=null/0/1041, packageName=audioserver
21,783: 03-05 09:25:12.785 1120 9937 D PowerManagerService: releaseWakeLockInternal: lock=155528842 [AudioMix], flags=0x0, total_time=3006ms, ws/pid/uid=null/0/1041, packageName=audioserver
24,788: 03-05 09:25:14.870 1120 2094 D PowerManagerService: releaseWakeLockInternal: lock=17773023 [AudioMix], flags=0x0, total_time=5096ms, ws/pid/uid=null/0/1041, packageName=audioserver
27,504: 03-05 09:25:32.425 1120 1986 D PowerManagerService: releaseWakeLockInternal: lock=170914761 [AudioMix], flags=0x0, total_time=3000ms, ws/pid/uid=null/0/1041, packageName=audioserver
31,671: 03-05 09:27:31.414 1120 28874 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
32,072: 03-05 09:27:35.514 1120 9937 D PowerManagerService: releaseWakeLockInternal: lock=189461283 [AudioMix], flags=0x0, total_time=4967ms, ws/pid/uid=null/0/1041, packageName=audioserver
32,235: 03-05 09:27:48.540 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=139786ms, ws/pid/uid=WorkSource{10149}/1120/1000, packageName=android
33,532: 03-05 09:31:49.423 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=19138ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
34,227: 03-05 09:39:23.343 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=19077ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
35,709: 03-05 09:50:01.569 1120 5576 D PowerManagerService: releaseWakeLockInternal: lock=262622707 [AudioMix], flags=0x0, total_time=5016ms, ws/pid/uid=null/0/1041, packageName=audioserver
40,223: 03-05 09:53:11.258 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=47129087 [AudioMix], flags=0x0, total_time=11671ms, ws/pid/uid=null/0/1041, packageName=audioserver
42,113: 03-05 09:54:18.455 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=90165ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
43,980: 03-05 09:58:31.847 1120 1866 D PowerManagerService: releaseWakeLockInternal: lock=41482562 [AudioMix], flags=0x0, total_time=4948ms, ws/pid/uid=null/0/1041, packageName=audioserver
45,114: ... ount.AccountProvider/com.ss.android.article.news/浠婃棩澶存潯:android], flags=0x0, total_time=1056ms, ws/pid/uid=WorkSource{10170}/1120/1000, packageName=android
45,115: ... roid.account.AccountProvider/com.ss.android.article.news/浠婃棩澶存潯], flags=0x0, total_time=1055ms, ws/pid/uid=WorkSource{10170}/1120/1000, packageName=android
48,138: 03-05 10:09:41.155 1120 1867 D PowerManagerService: releaseWakeLockInternal: lock=166340155 [lock], flags=0x10000, total_time=5028ms, ws/pid/uid=null/10914/10157, packageName=com.douban.frodo
49,248: 03-05 10:15:49.471 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=19166ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
49,849: 03-05 10:23:33.953 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=158159843 [AudioMix], flags=0x0, total_time=3003ms, ws/pid/uid=null/0/1041, packageName=audioserver
53,847: 03-05 10:33:40.523 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=25178756 [AnyMotionDetector], flags=0x0, total_time=10119ms, ws/pid/uid=null/1120/1000, packageName=android
55,480: 03-05 10:38:51.003 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=58705ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
57,584: 03-05 10:50:08.352 1120 1159 D PowerManagerService: releaseWakeLockInternal: lock=42546933 [WindowManager], flags=0x0, total_time=3352ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
57,973: 03-05 10:58:33.990 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=139350008 [PlatformComm], flags=0x0, total_time=3627ms, ws/pid/uid=null/14087/10174, packageName=com.tencent.mm
58,681: 03-05 11:05:16.002 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=9672ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
60,698: ... m.qti.qms.service.telemetry/.configuration.ConfigurationService], flags=0x0, total_time=2543ms, ws/pid/uid=WorkSource{10117}/1120/1000, packageName=android
60,936: 03-05 11:27:57.703 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=159914459 [com.netease.pushservice.core.PushServiceNews_V1], flags=0x10000, total_time=5042ms, ws/pid/uid=null/2130/10165, packageName=com.netease.newsreader.activity
60,966: 03-05 11:27:57.982 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=9673ms, ws/pid/uid=WorkSource{10152}/1120/1000, packageName=android
61,511: 03-05 11:27:59.486 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=145363854 [AudioMix], flags=0x0, total_time=5834ms, ws/pid/uid=null/0/1041, packageName=audioserver
62,308: 03-05 11:28:18.588 1120 1143 D PowerManagerService: releaseWakeLockInternal: lock=200513042 [deviceidle_maint], flags=0x0, total_time=30215ms, ws/pid/uid=null/1120/1000, packageName=android
64,031: 03-05 11:57:19.997 1120 1867 D PowerManagerService: releaseWakeLockInternal: lock=33839125 [AudioMix], flags=0x0, total_time=3005ms, ws/pid/uid=null/0/1041, packageName=audioserver
64,858: 03-05 12:24:11.581 1120 2964 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
64,894: 03-05 12:24:15.671 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=35006377 [AudioMix], flags=0x0, total_time=4971ms, ws/pid/uid=null/0/1041, packageName=audioserver
65,299: 03-05 12:34:39.953 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=9624ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
65,612: 03-05 12:42:57.594 1120 3088 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
65,654: 03-05 12:43:01.688 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=77765080 [AudioMix], flags=0x0, total_time=5029ms, ws/pid/uid=null/0/1041, packageName=audioserver
65,953: 03-05 12:45:03.398 1120 3130 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
65,987: 03-05 12:45:07.441 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=154602119 [AudioMix], flags=0x0, total_time=5011ms, ws/pid/uid=null/0/1041, packageName=audioserver
66,472: 03-05 13:00:26.985 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=107978624 [AudioMix], flags=0x0, total_time=3009ms, ws/pid/uid=null/0/1041, packageName=audioserver
66,829: 03-05 13:08:52.552 1120 3314 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
66,875: 03-05 13:08:56.628 1120 1867 D PowerManagerService: releaseWakeLockInternal: lock=208267440 [AudioMix], flags=0x0, total_time=4974ms, ws/pid/uid=null/0/1041, packageName=audioserver
68,960: 03-05 13:16:36.122 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=117472129 [RingtonePlayer], flags=0x0, total_time=1138ms, ws/pid/uid=null/1759/10049, packageName=com.android.systemui
69,291: 03-05 13:16:41.066 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=36905981 [AudioMix], flags=0x0, total_time=7831ms, ws/pid/uid=null/0/1041, packageName=audioserver
69,468: 03-05 13:17:00.609 1120 1143 D PowerManagerService: releaseWakeLockInternal: lock=200513042 [deviceidle_maint], flags=0x0, total_time=30132ms, ws/pid/uid=null/1120/1000, packageName=android
71,395: 03-05 13:59:33.026 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=257229039 [AudioMix], flags=0x0, total_time=3007ms, ws/pid/uid=null/0/1041, packageName=audioserver
72,381: 03-05 14:29:48.461 1120 4361 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
72,534: 03-05 14:29:52.535 1120 1867 D PowerManagerService: releaseWakeLockInternal: lock=169650022 [AudioMix], flags=0x0, total_time=4967ms, ws/pid/uid=null/0/1041, packageName=audioserver
72,959: 03-05 14:37:57.175 1120 4420 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
73,018: 03-05 14:37:58.436 1120 4435 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
73,078: 03-05 14:38:02.449 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=118300066 [AudioMix], flags=0x0, total_time=6231ms, ws/pid/uid=null/0/1041, packageName=audioserver
73,679: 03-05 14:58:11.055 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=29086276 [AudioMix], flags=0x0, total_time=3002ms, ws/pid/uid=null/0/1041, packageName=audioserver
73,858: 03-05 14:58:13.123 1120 4584 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1024ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
73,910: 03-05 14:58:17.172 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=161371877 [AudioMix], flags=0x0, total_time=4977ms, ws/pid/uid=null/0/1041, packageName=audioserver
74,117: 03-05 14:58:28.270 1120 4625 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
74,165: 03-05 14:58:32.322 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=156914804 [AudioMix], flags=0x0, total_time=5015ms, ws/pid/uid=null/0/1041, packageName=audioserver
74,471: 03-05 15:05:19.323 1120 4674 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
74,525: 03-05 15:05:23.405 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=115912440 [AudioMix], flags=0x0, total_time=5013ms, ws/pid/uid=null/0/1041, packageName=audioserver
75,026: 03-05 15:18:35.798 1120 4768 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
75,063: 03-05 15:18:39.863 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=29469552 [AudioMix], flags=0x0, total_time=5016ms, ws/pid/uid=null/0/1041, packageName=audioserver
75,409: 03-05 15:28:18.051 1120 1867 D PowerManagerService: releaseWakeLockInternal: lock=227845521 [AudioMix], flags=0x0, total_time=3003ms, ws/pid/uid=null/0/1041, packageName=audioserver
75,689: 03-05 15:38:05.004 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=9601ms, ws/pid/uid=WorkSource{1000}/1120/1000, packageName=android
76,198: 03-05 15:55:38.469 1120 5019 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
76,243: 03-05 15:55:42.532 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=10196468 [AudioMix], flags=0x0, total_time=4963ms, ws/pid/uid=null/0/1041, packageName=audioserver
76,430: 03-05 15:55:51.083 1120 5041 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1005ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
76,483: 03-05 15:55:55.146 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=52028126 [AudioMix], flags=0x0, total_time=5015ms, ws/pid/uid=null/0/1041, packageName=audioserver
77,454: 03-05 16:28:17.067 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=74858169 [AudioMix], flags=0x0, total_time=3003ms, ws/pid/uid=null/0/1041, packageName=audioserver
77,808: 03-05 16:35:07.254 1120 5309 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
77,856: 03-05 16:35:11.309 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=192157384 [AudioMix], flags=0x0, total_time=4973ms, ws/pid/uid=null/0/1041, packageName=audioserver
79,481: 03-05 17:08:48.269 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=40401607 [LbsLocWackLock], flags=0x0, total_time=4538ms, ws/pid/uid=null/10387/10152, packageName=com.baidu.BaiduMap
81,390: ... m.qti.qms.service.telemetry/.configuration.ConfigurationService], flags=0x0, total_time=6907ms, ws/pid/uid=WorkSource{10117}/1120/1000, packageName=android
81,503: 03-05 17:08:54.207 1120 1120 D PowerManagerService: releaseWakeLockInternal: lock=166915843 [*alarm*], flags=0x0, total_time=10777ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
82,165: 03-05 17:09:00.651 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=91733801 [AudioMix], flags=0x0, total_time=9079ms, ws/pid/uid=null/0/1041, packageName=audioserver
82,284: 03-05 17:09:13.833 1120 1143 D PowerManagerService: releaseWakeLockInternal: lock=200513042 [deviceidle_maint], flags=0x0, total_time=30279ms, ws/pid/uid=null/1120/1000, packageName=android
82,962: 03-05 17:26:46.572 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=157522787 [PlatformComm], flags=0x0, total_time=3717ms, ws/pid/uid=null/14087/10174, packageName=com.tencent.mm
83,241: 03-05 17:27:20.079 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=198226921 [AudioMix], flags=0x0, total_time=3000ms, ws/pid/uid=null/0/1041, packageName=audioserver
83,396: 03-05 17:28:26.269 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=242710428 [MicroMsg.MMAutoAuth], flags=0x0, total_time=1042ms, ws/pid/uid=null/14087/10174, packageName=com.tencent.mm
83,402: 03-05 17:28:26.315 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=212230341 [PlatformComm], flags=0x0, total_time=1005ms, ws/pid/uid=null/14087/10174, packageName=com.tencent.mm
83,720: 03-05 17:36:39.172 1120 7341 D PowerManagerService: releaseWakeLockInternal: lock=157522787 [PlatformComm], flags=0x0, total_time=5031ms, ws/pid/uid=null/14087/10174, packageName=com.tencent.mm
90,623: 03-05 17:46:48.719 1120 7117 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
90,697: 03-05 17:46:52.802 1120 5205 D PowerManagerService: releaseWakeLockInternal: lock=71829282 [AudioMix], flags=0x0, total_time=4960ms, ws/pid/uid=null/0/1041, packageName=audioserver
93,172: 03-05 17:53:53.089 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=223517809 [AudioMix], flags=0x0, total_time=3001ms, ws/pid/uid=null/0/1041, packageName=audioserver
93,853: 03-05 18:02:30.451 1120 7530 D PowerManagerService: releaseWakeLockInternal: lock=33530937 [*vibrator*], flags=0x0, total_time=1004ms, ws/pid/uid=WorkSource{10174}/1120/1000, packageName=android
93,901: 03-05 18:02:34.566 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=193136213 [AudioMix], flags=0x0, total_time=4970ms, ws/pid/uid=null/0/1041, packageName=audioserver
95,999: 03-05 18:57:25.153 1120 1739 D PowerManagerService: releaseWakeLockInternal: lock=199558551 [AudioMix], flags=0x0, total_time=3010ms, ws/pid/uid=null/0/1041, packageName=audioserver
96,645: 03-05 19:23:19.027 1120 10787 D PowerManagerService: releaseWakeLockInternal: lock=248529993 [GsmInboundSmsHandler], flags=0x0, total_time=3412ms, ws/pid/uid=null/1904/1001, packageName=com.android.phone
这篇关于功耗分析-正则搜索APP持锁时长超过1秒的语句的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!