Linux/android Performance Optimization Tool perf

Source: Internet
Author: User
Tags builtin diff file diff

/***************************************************************************** * Linux/Android Performance Optimizer With perf * Description: * has been looking for the Performance optimization tool on Android, but never know what to look for keywords, * Today in the Android source code directory to see LINUX-TOOLS-PERF, check the relevant information, finally * found that it seems to me a Looking straight at the tool for viewing system performance, there is currently no verification of anything, first record * under these things. * 2016-06-06 Shenzhen Nanshan Ping Shan village Zengjianfeng ***************************************************** ***********************/First, reference article: Linux performance Optimization Tool perf Top http://www.68idc.cn/help/server/linux/20151119591702.htmlPerf--System performance tuning tool under Linux, section2Partial http://www.ibm.com/developerworks/cn/linux/l-cn-perf2/index.htmlSecond, the Android perf source directory situation: [email protected]:~/myandroid/external$ Ls-al linux-tools-perf Total564DRWXRWXR-X AMyzr Myzr4096June6  One: to . DRWXRWXR-X171Myzr Myzr4096Mar to Ten: + .. -rw-rw-r--1Myzr Myzr6083Apr One   theandroid.mk-rw-rw-r--1Myzr Myzr42956Apr One   theAndroid.patch drwxrwxr-X8Myzr Myzr4096Apr -   -Arch DRWXRWXR-X2Myzr Myzr4096Apr One   theBench-rw-rw-r--1Myzr Myzr7607Apr One   thebuiltin-annotate.c-rw-rw-r--1Myzr Myzr4952Apr One   thebuiltin-bench.c-rw-rw-r--1Myzr Myzr3225Apr One   thebuiltin-buildid-cache.c-rw-rw-r--1Myzr Myzr1508Apr One   thebuiltin-buildid-list.c-rw-rw-r--1Myzr Myzr6473Apr One   thebuiltin-DIFF.C-rw-rw-r--1Myzr Myzr1249Apr One   thebuiltin-evlist.c-rw-rw-r--1Myzr Myzr2045Apr One   theBuiltin.h-rw-rw-r--1Myzr Myzr11439Apr One   thebuiltin-help.c-rw-rw-r--1Myzr Myzr5702Apr One   thebuiltin-inject.c-rw-rw-r--1Myzr Myzr17676Apr One   thebuiltin-KMEM.C-rw-rw-r--1Myzr Myzr3746Apr One   thebuiltin-KVM.C-rw-rw-r--1Myzr Myzr1387Apr One   thebuiltin-list.c-rw-rw-r--1Myzr Myzr23756Apr One   thebuiltin-Lock. C-rw-rw-r--1Myzr Myzr11159Apr One   thebuiltin-probe.c-rw-rw-r--1Myzr Myzr23259Apr One   thebuiltin-RECORD.C-rw-rw-r--1Myzr Myzr14754Apr One   thebuiltin-report.c-rw-rw-r--1Myzr Myzr45433Apr One   thebuiltin-SCHED.C-rw-rw-r--1Myzr Myzr28629Apr One   thebuiltin-script.c-rw-rw-r--1Myzr Myzr33129Apr One   thebuiltin-stat.c-rw-rw-r--1Myzr Myzr16940Apr One   thebuiltin-test.c-rw-rw-r--1Myzr Myzr24003Apr One   thebuiltin-timechart.c-rw-rw-r--1Myzr Myzr29062Apr One   thebuiltin-top.c-rw-rw-r--1Myzr Myzr2599Apr One   thecleanspec.mk-rw-rw-r--1Myzr Myzr814Apr One   thecommand-List.txt-rw-rw-r--1Myzr Myzr1536Apr One   thecommon-cmds.h drwxrwxr-X2Myzr Myzr4096Apr One   theConfig-rw-rw-r--1Myzr Myzr603Apr One   theCREDITS-rw-rw-r--1Myzr Myzr17723Apr One   thedesign.txt drwxrwxr-X2Myzr Myzr4096Apr One   theDocumentation DRWXRWXR-X2Myzr Myzr4096Apr One   the. Git drwxrwxr-X2Myzr Myzr4096Apr One   thehost-darwin-Fixup drwxrwxr-X2Myzr Myzr4096Apr One   thehost-linux-Fixup-rw-rw-r--1Myzr Myzr29895Apr One   theMakefile-rw-rw-r--1Myzr Myzr288Apr One   theMANIFEST-rw-rw-r--1Myzr Myzr inApr One   theMM.C-rw-rw-r--1Myzr Myzr1229Apr One   theperf-archive.sh-rw-rw-r--1Myzr Myzr12418Apr One   thePERF.C-rw-rw-r--1Myzr Myzr536Apr One   theperf-CFLAGS-rw-rw-r--1Myzr Myzr4880Apr One   theperf.h-rw-rw-r--1Myzr Myzr +Apr One   theperf-version-FILE drwxrwxr-X2Myzr Myzr4096Apr One   thepython drwxrwxr-X4Myzr Myzr4096Apr -   -Scripts Drwxrwxr-X6Myzr Myzr4096Apr One   theutil [email protected]:~/myandroid/external$ Three, Android perf [email protected]:/# perf Usage:perf [--version] [--Help ]  COMMAND [ARGS] The most commonly used perf commands are:annotate Read perf.data (created by perf record) and display Annotated Code Archive Create archive withObjectFiles with Build-ids foundinchperf.data File Bench General Framework forBenchmark Suites Buildid-cache Manage build-ID cache. Buildid-list List the Buildidsincha Perf.data file diff Read perf.data files and display the differential profile evlist List theEventNamesincha perf.data file inject Filter to augment the events stream with additional information kmem Tool to trace/measure kernel Memory (Slab) Properties KVM Tool to trace/measure KVM guest OS list all symbolicEventTypesLockAnalyzeLockEvents Probe DefineNewDynamic tracepoints record Run a command and record its profiles into Perf.data report R EAD Perf.data (created by perf record) and display the Profiles sched Tool to trace/Measure Scheduler Properties (latencies) script Read Perf.data (created by perf record) and display tra CE output stat Run a command and gather performance counter statistics Test Runs Sanity       Tests.     Timechart tool to visualize total system behavior during a workload top system profiling Tool. See'perf Help COMMAND'  forMore information on a specific command. [Email protected]:/# Perf--version perf version perf.3.0. 8_android [email protected]:/ #

Linux/android Performance Optimization Tool perf

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.