BootChart
来源:互联网 发布:java divide 编辑:程序博客网 时间:2024/05/07 11:40
Bootchart is a tool for performance analysis and visualization of the GNU/Linux boot process. Resource utilization and process information are collected during the boot process and are later rendered in a PNG, SVG or EPS encoded chart.
"The challenge is to create a single poster showing graphically what is going on during the boot, what is the utilization of resources, how the current boot differs from the ideal world of 100% disk and CPU utilization, and thus, where are the opportunities for optimization."
Bootchart provides a shell script to be run by the kernel in the init
phase. The script will run in background and collect process information, CPU statistics and disk usage statistics from the /proc
file system. The performance data are stored in memory and are written to disk once the boot process completes.
The boot log file is later processed using a Java application (or the web form) which builds the process tree and renders a performance chart in different formats:
The chart can then be analyzed to examine process dependency and overall resource utilization
编译bootchart.jar
jackie_gnu@host:~/test/bootchart/bootchart-0.9$ antBuildfile: build.xmlprepare: [mkdir] Created dir: /home/jackie_gnu/test/bootchart/bootchart-0.9/buildclasses: [javac] Compiling 28 source files to /home/jackie_gnu/test/bootchart/bootchart-0.9/build [javac] Note: /home/jackie_gnu/test/bootchart/bootchart-0.9/lib/org/apache/commons/cli/TypeHandler.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] Compiling 26 source files to /home/jackie_gnu/test/bootchart/bootchart-0.9/build [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details.jar: [jar] Building jar: /home/jackie_gnu/test/bootchart/bootchart-0.9/bootchart.jarjavadoc: [mkdir] Created dir: /home/jackie_gnu/test/bootchart/bootchart-0.9/javadoc/api [javadoc] Generating Javadoc [javadoc] Javadoc execution [javadoc] Loading source files for package org.bootchart... [javadoc] Loading source files for package org.bootchart.common... [javadoc] Loading source files for package org.bootchart.parser... [javadoc] Loading source files for package org.bootchart.parser.linux... [javadoc] Loading source files for package org.bootchart.renderer... [javadoc] Constructing Javadoc information... [javadoc] Standard Doclet version 1.6.0_18 [javadoc] Building tree for all the packages and classes... [javadoc] Building index for all the packages and classes... [javadoc] Building index for all classes...all:BUILD SUCCESSFULTotal time: 9 seconds
生成bootchart.png
java -jar bootchar.jar example/bootchart.tgz bootchart.png
- BootChart
- bootchart
- bootchart
- Android Bootchart
- [Android]bootchart
- bootchart使用说明
- Bootchart使用
- bootchart 系统启动速度检测
- Build Android Bootchart
- Using Bootchart on Android
- Android bootchart使用步骤
- Android bootchart使用步骤
- bootchart实现分析
- Using Bootchart on Android
- Android bootchart 使用心得
- Android bootchart 工具使用
- Android——bootchart
- Android bootchart分析
- Java NIO类库Selector机制解析
- U盘插入和退出计算机时拦消息
- Boost::Call_Traits 介绍
- MSSQL获取当前插入的ID号及在高并发的时候处理方式
- java mail API--(1)
- BootChart
- 鲁棒的圆检测算法
- java 处理 barCode(条形码)
- MPLL
- zookeeper代码浅析
- js验证身份证号码的有效方法[1]以及密码验证和强度的验证 1 JS正则表达式 代码 .txt
- c#中调用并调试C++的DLL
- 压缩ASP.NET中的ViewState
- Facade设计模式