OpenOffice.org Profiling 道具s
ーするために 速度(を上げる) up the startup time of OpenOffice 使用/適用s we have developed a 始める,決める of 道具s to derive profiling data from those 使用/適用s. Our approach 異なるs from that of other (商業の) 道具s in the に引き続いて points:
The (警察などへの)密告,告訴(状) that we gather from the 使用/適用s covers larger 封鎖するs of code suitable for an 全体にわたる 分析 instead of logging every code line or every 指示/教授/教育.
The ability to 令状 profiling (警察などへの)密告,告訴(状) is 収集するd automatically into the code at (almost) every build.
Profiling data from different runs can be compared to each other, so that an (a)自動的な/(n)自動拳銃 分析 can take place that 知らせるs you about 速度(を上げる)-ups or slow-負かす/撃墜するs from 見解/翻訳/版 to 見解/翻訳/版.
Your comments on the profiling 道具s and on this page are welcome. Please send them to andre.w.fischer@sun.com or carsten.driesner@sun.com.
Overview
The profiling 過程 can be divided into four steps:
追加する 大型のs for 令状ing time stamps to your code. This of course 要求するs a rough idea at what code parts are too slow and need to be optimized. Don't 令状 too much time stamps because of the runtime 刑罰,罰則 and more important in a run time 分析 on a much higher than code line level. This step has to be done only once, so the 総計費 of 追加するing 大型のs for 令状ing time stamps should not be too high.
Run the office 使用/適用 you are 利益/興味d in. This 生成するs a スピードを出す/記録につける とじ込み/提出する that 含む/封じ込めるs all time stamps. If you are 利益/興味d in more then start-up or とじ込み/提出する-open times use the scripting functionality of the office.
地位,任命する 過程 the スピードを出す/記録につける とじ込み/提出するs. In this step you can filter away unwanted time stamps that would さもなければ clutter the 分析 results and obscure those parts that you are 利益/興味d in. Also the time stamps can be augmented by 付加 (警察などへの)密告,告訴(状).
分析する the スピードを出す/記録につける とじ込み/提出するs and 生成する 報告(する)/憶測s. Compare the new タイミングs with those of previous runs. This enables you to see if a piece of code got slower or faster. 世代 of (a)自動的な/(n)自動拳銃 notifications of the responsible developers is also possible.
Status
The classes, 機能(する)/行事s, and 大型のs used for 器具ing the source code in the first step are ready for using. See the section Source Code for 詳細(に述べる)s.
There is a first 始める,決める of Perl scripts for 地位,任命する 過程ing and 世代 of simple 報告(する)/憶測s as Calc 文書s 利用できる. Both 地位,任命する-過程ing and 分析 will be 延長するd in the 近づく 未来. See the 道具s section for 詳細(に述べる)s.
Source Code
The classes and 大型のs for 令状ing the time stamps can be 設立する in
the sal 事業/計画(する) of the udk. They are defined in the とじ込み/提出するs
sal/inc/rtl/logfile.h, sal/inc/logfile.hxx,
and sal/rtl/source/logfile.cxx. For 傾向 into your
source code use #含む <rtl/logfile.h> or
#含む <rtl/logfile.hxx> as 述べるd in the
How-To (see below under Documentation).
道具s
The scripts for 地位,任命する-過程ing the スピードを出す/記録につける とじ込み/提出するs can be 設立する in the (sub) 事業/計画(する) 道具s/contrib/profiling. 公式文書,認める that you have to check them out by 手渡す.
令状-calc-doc.pl transforms a スピードを出す/記録につける とじ込み/提出する into a Calc 文書 that 含む/封じ込めるs two data sheets for every thread. The first sheet 陳列する,発揮するs a pretty printed 見解/翻訳/版 of the raw data. The second sheet is made up by a (米)棚上げする/(英)提議する that 含む/封じ込めるs for each 機能(する)/行事 or other 範囲 the 極小の, maximal, 普通の/平均(する), and total time and the number of calls. More 詳細(に述べる)s.
Documentation
There is a How-To that 述べるs how to 器具 the source code so that profiling time stamps are written to the スピードを出す/記録につける とじ込み/提出する.
This 文書 述べるs the 判型 of the time stamps written to the スピードを出す/記録につける とじ込み/提出する.
The Calc 文書 含む/封じ込めるing the documentation of the time stamps that are written to the profiling スピードを出す/記録につける とじ込み/提出するs is here.while some words on what to 含む into that とじ込み/提出する can be 設立する here.
Communication
The mailing 名簿(に載せる)/表(にあげる) for discussing 事柄s 関心ing this profiling 事業/計画(する) is dev@道具s.openoffice.org.

