summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-06-02Update Timings Logs Parser: verbose + debug logsandroid-vts-13.0_r8android-vts-13.0_r7android-vts-13.0_r6android-vts-13.0_r5android-vts-13.0_r4android-vts-13.0_r3android-vts-13.0_r2android-cts-13.0_r8android-cts-13.0_r7android-cts-13.0_r6android-cts-13.0_r5android-cts-13.0_r4android-cts-13.0_r3android-cts-13.0_r2android13-tests-releaseandroid13-tests-devandroid13-devNoah Azarin
Bug: 229388685 Change-Id: Id845b8afe86bd9240ffa828f03e8dc3402890857 Test: asit/perf/boottime_test (cherry picked from commit 3b1660a55373b483e0aee137f7c4a67540775a32)
2022-03-10Avoid NPE if buffer contains a nullJulien Desprez
Test: unit tests Bug: None Change-Id: Ibee4fdeadeb35547d6586015816afd7df53a7918
2021-06-18Add boot event info to EventsLogParserLisa Liu
Parse boot event and it's duration from event log. BUG: 189388152 Test: run_tradefed_tests.sh --class com.android.loganalysis.parser.EventsLogParserTest Change-Id: Ibe6c23ba70c8e0488441be368cb8f54327bcf99f
2021-03-04Add module info to dmesg parserLisa Liu
Parse module name, load duration and count from dmesg. BUG: 174796470 Test: run_tradefed_tests.sh --class com.android.loganalysis.parser.DmesgParserTest Change-Id: I4943ed10e7fa73519204cbfa028a3b8d75af2204
2020-07-27TraceFormatParser: Update language to comply with Android’s inclusive ↵frankfeng
language guidance See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: make Change-Id: I65b01efa0fd1e7b1f5ea44c0bb3520c458cafb63
2020-02-06Merge "Fix more [UnnecessaryParentheses] warnings" am: 172108d242Automerger Merge Worker
Change-Id: I105e32f871bd46ccc927702ee522d35e94eb06a9
2020-02-05Fix more [UnnecessaryParentheses] warningsJulien Desprez
Test: unit tests Bug: 148418189 Change-Id: Ic675220b1208aacfc58111420b866ed2c9f62c3c
2020-02-04Merge "Remove unnecessary parentheses" am: 5f8708a649Automerger Merge Worker
Change-Id: Ibb9b6eb4a255aa8375b51ac97f793c839d0e6469
2020-02-03Remove unnecessary parenthesesJulien Desprez
Test: unit tests Bug: 148418189 Change-Id: Id4a16ffdb28fd6b734370fcae5f5f28ad628ff60
2020-02-03Merge "Fix [UnnecessaryParentheses] condition" am: e44a19ef97Automerger Merge Worker
Change-Id: I2575340f53e58b64088504e19500f62f168c94c5
2020-02-03Fix [UnnecessaryParentheses] conditionJulien Desprez
Test: make TF Bug: 148418189 Change-Id: I6f040d907af82fe4aceb89f50c3640dcc5b365ac
2019-12-20Revert "Merge "Revert submission 9940985-qpr1-dev merge" into qt-qpr1-dev ↵Kimberly Kreider
am: 1cbccc3fa3" This reverts commit c1e08957272b7fed91fabb46775bbc2e7278c0f9. Reason for revert: broke builds Bug: 146660303 Change-Id: I7607d0a36b55e15868e771f62c548842b9e29679
2019-12-20Revert submission 9940985-qpr1-dev mergeKimberly Kreider
Reason for revert: broke tests b/146476630 Bug: 146476630 Reverted Changes: Ib3436a42b2ca8c9614939a30fb548ab39bc23e57 Change-Id: Ic936e0f03b001fff37308bb576376299c5ebef20 Exclude merging into branches that contain last aosp change included in merge. Merged-In: 483ea33b74d7008d909e817c754ba9165ae704b1
2019-12-17DO NOT MERGE: Adding required loganalysis changes for tradefed merge into ↵Kimberly Kreider
qt-dev. Bug: 143908003 Change-Id: Ib3436a42b2ca8c9614939a30fb548ab39bc23e57 Exclude merging into *-plus-aosp branches, since they already include the change. Merged-In: I2ae86ba9706747873268192988c32879005ed0f7 Merged-In: I38efc115f2c691754d481fdffb6630607ef970e8 (cherry picked from commit c7bcaba872c7d82286960c750edd67e56ee73712)
2019-07-31Add source in init action info logging.gopinath
Bug: b/135751856 Test: DmesgParserTest 9 Pass Change-Id: I87d4f344b631690ffeaa3a1909adb845964ed1d3 Merged-In: If7c82c7e7162a575333948d87fcf9c2d993d03ef
2019-07-09Added generic logcat timing parsing featureChao Yan
Bug: 133166326 Test: build and run "tools/tradefederation/core/tests/run_tradefed_tests.sh --class com.android.loganalysis.UnitTests" Change-Id: Ica363ae379a551b51ca5f64eb62061e0c8baf903
2019-06-17Added a new parser for timing metrics from logcatChao Yan
The new parser will be used for analyze logcat to parse timing related metrics, e.g. can be used for boot time metrics parsing Test: tools/tradefederation/core/tests/run_tradefed_tests.sh --class com.android.loganalysis.UnitTests Bug: 133166326 Change-Id: I0a17a813fd0f5b7908279d76c38d4d8e0fbf1e96
2019-02-19Parse "Wait for property" duration from dmesg.gopinath
Bug: b/123788098 Test: DmesgParserTest Change-Id: I12fd7fc8095de72bc011c07a187564d1cae549ec
2018-05-09Fixing app transition testsandroid-vts-9.0_r9android-vts-9.0_r8android-vts-9.0_r7android-vts-9.0_r6android-vts-9.0_r5android-vts-9.0_r4android-vts-9.0_r19android-vts-9.0_r18android-vts-9.0_r17android-vts-9.0_r16android-vts-9.0_r15android-vts-9.0_r14android-vts-9.0_r13android-vts-9.0_r12android-vts-9.0_r11android-vts-9.0_r10android-cts-9.0_r9android-cts-9.0_r8android-cts-9.0_r7android-cts-9.0_r6android-cts-9.0_r5android-cts-9.0_r4android-cts-9.0_r3android-cts-9.0_r20android-cts-9.0_r2android-cts-9.0_r19android-cts-9.0_r18android-cts-9.0_r17android-cts-9.0_r16android-cts-9.0_r15android-cts-9.0_r14android-cts-9.0_r13android-cts-9.0_r12android-cts-9.0_r11android-cts-9.0_r10android-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-vts-releasepie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-cts-releasepie-cts-devpie-b4s4-releasepie-b4s4-devVadim Tryshev
Using WINDOWS_DRAWN_DELAY where needed, switching from relying on Recents activity to the Launcher one. Removing cold launches in the beginning in removeAdditionalLaunchInfo. Bug: 72967764 Test: Running app transition tests locally Change-Id: Iec8c2ad2cdfc0fb2e570f114cd26897f3607e71f
2018-02-05Add percentile fields to GfxInfoParserSteven Timotius
Test: tools/tradefederation/core/tests/run_tradefed_tests.sh --class com.android.loganalysis.parser.GfxInfoParserTest Bug: None Change-Id: Id2c36af1daa3cb330aa783756a6c412e2f7f820c
2018-01-26Add parser for dumpsys meminfo --checkin PROCESSSteven Timotius
Parser will be used to obtain process memory usage data Test: tools/tradefederation/core/tests/run_tradefed_tests.sh --class com.android.loganalysis.parser.DumpsysProcessMeminfoParserTest Bug: 72409230 Change-Id: I0035a32550372c4e8ee7cd049e43524b3700101b
2017-10-09A class to parse trace format.GuangHui Liu
Bug: 36368025 Test: unit tests Change-Id: I87c8c32bb7baf730a49bfaf730a8714ac1cc59ce
2017-09-22Fix AppTransition parser.gopinath
Log format has changed recently for cold launch and hot launch. Change parser to handle the new format and improve the existing test cases. Bug : b/62423763 Tests : OK (11 tests) Change-Id: I6a34b7215778004d09d9dd14ff9cafc0ed30c885
2017-09-15Cold launch log format changes for app transition.gopinath
Bug: b/65208363 Tests : OK (11 tests) Change-Id: Iddb14f7efd786c94cc5d7fe229e711ae0d816d24
2017-08-03Fix LogAnalysis App Versions dump. (cherry-picked from unsubmitted change in ↵android-vts-8.1_r9android-vts-8.1_r8android-vts-8.1_r7android-vts-8.1_r6android-vts-8.1_r5android-vts-8.1_r4android-vts-8.1_r3android-vts-8.1_r14android-vts-8.1_r13android-vts-8.1_r12android-vts-8.1_r11android-vts-8.1_r10oreo-mr1-vts-releaseoreo-mr1-devoreo-mr1-cts-devNetta Peterbursky
oc-dev ag/2549006 and updated) am: 3a879098fe Change-Id: If38678bd4e96e1389bb8ff0cda32355a098991e8
2017-08-02Fix LogAnalysis App Versions dump.oreo-dr1-devNetta Peterbursky
(cherry-picked from unsubmitted change in oc-dev ag/2549006 and updated) Test: DumpsysPackageStatsItemTest, manual: java -classpath out/host/linux-x86/tradefed/loganalysis.jar com.android.loganalysis.LogAnalyzer --bugreport bugreport.txt Bug: b/38415015 Change-Id: I6bce38a18441712d2f182a0d3c60b7851f87470e
2017-06-23Add app versions to Bugreport parser (for event history view in stability ↵android-vts-8.0_r9android-vts-8.0_r8android-vts-8.0_r7android-vts-8.0_r6android-vts-8.0_r2android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10android-vts-8.0_r1oreo-vts-releaseoreo-cts-devNetta Peterbursky
dashboard). Bug: 38415015 Test: BugreportParserTest, DumpsysPackageStatsParserTest, DumpsysParserTest Change-Id: Id6e5ccbd39188be0b6908df751b310cd0f642593 (cherry picked from commit 44e6c57bdf25abcf2b5b13cf958ed37eb55ae8a8)
2017-06-15Support parsing the boottime legacy log format (i.e processing actions)gopinath
b/62394657 Test: OK (257 tests). Change-Id: Ib5f5f9db27426b1a334e3c05faa6eb183a2e2975
2017-06-02DO NOT MERGE: Drop loganalysis master into oc-devoreo-devjdesprez
Test: build, unit tests Bug: 37211399 Change-Id: I2985639ec9fed8c79a31dc9828a16097fe9e89e0
2017-05-23Add app versions to Bugreport parser (for event history view in stability ↵Netta Peterbursky
dashboard). Bug: 38415015 Test: BugreportParserTest, DumpsysPackageStatsParserTest, DumpsysParserTest Change-Id: Id6e5ccbd39188be0b6908df751b310cd0f642593
2017-05-19Merge "Add new parsed fields to the compact meminfo parser."Michael Rosenfeld
2017-05-17Merge "Accomodate new log format logged in dmesg during boot"TreeHugger Robot
2017-05-16Accomodate new log format logged in dmesg during bootgopinath
b/38045657 Test : Time: 0.37 OK (253 tests) Change-Id: If4047e75c65c8d062e789ce03e6c82c2a42d5096
2017-05-15Add new parsed fields to the compact meminfo parser.Michael Rosenfeld
* Free RAM, Total ZRAM, Swap Free ZRAM, and Tuning Level Test: CompactMemInfoParserTest Change-Id: Id95bae62f98119f04a9f0e5046ec3f28760921ef
2017-05-11Parser to handle only transition delay info.gopinath
Tests : java -cp out/host/linux-x86/framework/loganalysis-tests.jar:out/host/linux-x86/framework/loganalysis.jar org.junit.runner.JUnitCore com.android.loganalysis.UnitTests OK (253 tests) run google/template/local --template:map test performance/app-transitions --cold-apps Calculator --hot-apps Calculator --pre-launch-apps Calculator --apps-to-recents Calculator --hot-apps-from-recents Calculator --hot-apps-from-recents Calculator --launch-iteration 2 --no-bugreport-on-invocation-ended --alt-dir /usr/local/google/home/gelanchezhian/Desktop/local Test Sponge link: https://sponge.corp.google.com/invocation?tab=host_log.txt&show=&id=cd595d48-4beb-4bbf-86b0-7b17b4ae82a6&searchFor=&sortBy=STATUS Change-Id: I61163d67630e54f29248d56c2de1faf4dec45b41
2017-05-11Parser to handle only transition delay info.gopinath
Tests : java -cp out/host/linux-x86/framework/loganalysis-tests.jar:out/host/linux-x86/framework/loganalysis.jar org.junit.runner.JUnitCore com.android.loganalysis.UnitTests OK (253 tests) run google/template/local --template:map test performance/app-transitions --cold-apps Calculator --hot-apps Calculator --pre-launch-apps Calculator --apps-to-recents Calculator --hot-apps-from-recents Calculator --hot-apps-from-recents Calculator --launch-iteration 2 --no-bugreport-on-invocation-ended --alt-dir /usr/local/google/home/gelanchezhian/Desktop/local Test Sponge link: https://sponge.corp.google.com/invocation?tab=host_log.txt&show=&id=cd595d48-4beb-4bbf-86b0-7b17b4ae82a6&searchFor=&sortBy=STATUS Change-Id: I61163d67630e54f29248d56c2de1faf4dec45b41
2017-05-02Apptransition parser change.gopinath
Change to new logging format. Latency parser change will be taken care separately. Events log parser test changes. b/36490501 Tests : OK (252 tests) - Passed Change-Id: I6425ebd08c7f6120a056c268528d371cd7096b97 (cherry picked from commit 5e008d690d460b25e174d02932413be850798efb)
2017-04-27Apptransition parser change.gopinath
Change to new logging format. Latency parser change will be taken care separately. Events log parser test changes. b/36490501 Tests : OK (252 tests) - Passed Change-Id: I6425ebd08c7f6120a056c268528d371cd7096b97
2017-04-13Merge "Parse additional boot information from dmesg logs"TreeHugger Robot
2017-04-11Parse additional boot information from dmesg logsgopinath
Parse boot completed set time as well. This is needed to compute the total boot time in Boot time test. Additonal logs formats parsed now [ 14.638884] init: processing action (sys.boot_completed=1) Total_Boot_Time = BootLoader_Time_ms + Boot_Completed_Set_Time_ms b/36982296 Tests Run : All the tests in DmesgParserTest passed. Change-Id: I93781af937a41cedf72e7f1e5091eead5af96d1a
2017-04-05Fix logcat parsing in bugreports.Maxim Siniavine
A UID column was added to the logcat log. Update the regular expresion to accept the new column. BUG: 36891877 TEST: Run local unit test. Run command line parser to parse bugreport. Change-Id: I514f5d81edacd4296959e30ebc63796c347c74f5
2017-03-22Merge "Modified DmesgParser to return IItem"Shankhoneer Chakrovarty
2017-03-14Fix missing @overrideJulien Desprez
Test: local build and run Bug: 35864476 Change-Id: I1a7623021e2f959611621477ae91cc2495cf6515
2017-03-13Modified DmesgParser to return IItemShankhoneer Chakrovarty
BUG:35758559 Change-Id: I55d960ac278d32159aa5c73932a1da3fbff25790 Fixes:35758559
2017-03-03Add error_prone rules on LoganalysisJulien Desprez
Fix warnings of current rules. Test: local build and error prone Bug: 35864476 Change-Id: Ib03b309de69e9c92cf815440bb637b955447847e
2017-02-24Improved dmesg parserShankhoneer Chakrovarty
The improved parser captures info on: 1. boot stage 2. action processing time BUG:35469489 Change-Id: Ice32079b96373d18036296097a140d5bc0d2ec33
2017-01-10Fix a few warnings produced by java lint.Michael Wright
Add a hashCode implementation to GenericItem and LogcatParser.ExtrasPattern, and suppress the warning for the lack of serialVersionUID to the anonymous subclass of HashMap since it'll never actually be serialized. Test: java -cp loganalysis.jar:loganalysis-tests.jar org.junit.runner.JUnitCore com.android.loganalysis.UnitTests Change-Id: Ibbbcaf6d1629cd5cfad172fe0eb6a720525ec483
2016-12-13Add LMK and page allocation failure parsing from kernel logsMichael Rosenfeld
Bug: 33272479 Test: Added to KernelLogParserTest class Change-Id: I579a2ddae503f98f9b4447f57f9547d125f808f2
2016-12-06Add parser to extract the init services time from dmesg logsGopinath
Tests: 5 Tests passed! Bug: 32019616 Change-Id: I9bb3a724ef32d30efcdef0297564884e2cafdfcb
2016-09-27Add loganalysis facility for parsing DVM lock logs.Robert Sloan
BUG: 31382082 Change-Id: Ib33f186b5869cdf1cb72f80bd457a6ce7fb5def8