JPH0436844A - Cpu time counting system - Google Patents
Cpu time counting systemInfo
- Publication number
- JPH0436844A JPH0436844A JP2142671A JP14267190A JPH0436844A JP H0436844 A JPH0436844 A JP H0436844A JP 2142671 A JP2142671 A JP 2142671A JP 14267190 A JP14267190 A JP 14267190A JP H0436844 A JPH0436844 A JP H0436844A
- Authority
- JP
- Japan
- Prior art keywords
- cpu time
- time measurement
- segment
- cpu
- measurement command
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000005259 measurement Methods 0.000 claims abstract description 63
- 238000000691 measurement method Methods 0.000 claims description 14
- 239000013256 coordination polymer Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 241000238413 Octopus Species 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はCPUタイム測定方式に関し、特にコンピュー
タシステムにおけるプログラムの性能評価を行うための
CPUタイム測定方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CPU time measurement method, and particularly to a CPU time measurement method for evaluating the performance of a program in a computer system.
従来、この種のCPUタイム測定方式は、コンピュータ
システムが認識し得るプログラムの構成単位(以下、セ
グメントという)の全てに対しては適用できないか、あ
るいは適用できたとしてもその適用時期がシステム立上
げ時等に限定されていた。Conventionally, this type of CPU time measurement method cannot be applied to all of the structural units (hereinafter referred to as segments) of a program that can be recognized by a computer system, or even if it can be applied, it can only be applied at the time of system startup. It was limited to time.
すなわち、従来のCPUタイム測定方式は、通常、CP
Uタイムを測定したいプログラムの部分にCPUタイム
測定ルーチンを挿入して測定するという方法をとるため
、測定したいプログラムの部分の改造が必要であり、測
定の分解能は商いが柔軟性に乏しい。That is, conventional CPU time measurement methods typically
Since the CPU time measurement routine is inserted into the part of the program where the U time is to be measured, it is necessary to modify the part of the program to be measured, and the measurement resolution is relatively inflexible.
また、CP Uタイム測定ルーチンは、通常はCP U
タイムを測定したいプログラムの入口と出口とに設定す
ることが多いが、プログラムによっては複数の入口と出
口とを持つものがあり、全部の入口と出口とにCPUタ
イム測定ルーチンを設定する必要がある場合があるので
、設定のための作業が煩雑であり、設定ミスのために測
定を誤りやすい。Also, the CPU time measurement routine usually
It is often set at the entrance and exit of the program for which you want to measure time, but some programs have multiple entrances and exits, and it is necessary to set the CPU time measurement routine at all entrances and exits. Therefore, the setting work is complicated, and measurement errors are likely to occur due to setting errors.
さらに、複数のセグメントからなるサブシステム(例え
ば、基本入出力管理部、データベース管理部1通信管理
部等)のような大きな単位でCPUタイムを測定したい
場合、通常はそのザブシステムに対する入口および出口
の数は膨大なものであり、全ての入口および出口に誤り
な(CP tJタイム測定ルーチンを設定するのはほと
んど不可能である。Furthermore, when you want to measure CPU time in large units such as a subsystem consisting of multiple segments (for example, basic input/output management section, database management section, communication management section, etc.), you usually The number is huge and it is almost impossible to set up an error (CP tJ time measurement routine) for every entry and exit.
これに対して、CPUタイム測定ルーチンをCPUタイ
ムを測定したいプログラムの部分に挿入するという方法
ではなく、ハードウェアの機構としてセグメント毎にC
PUタイムを測定する/しないを指定できるCPUタイ
ム測定属性設定部を有しこれを利用してCPUタイムを
測定するCPUタイム測定方式もあるが、どのセグメン
トについてCPUタイムの測定を行うかはコンピュータ
システムの出荷時点で確定していた。通常、コンピュー
タシステムが認識できる全てのセグメントに対してCP
Uタイムの測定を行う場合やユーザアプリケーションプ
ログラム内のセグメントのみについてCPUタイムの測
定を行う場合が多い。On the other hand, instead of inserting a CPU time measurement routine into the part of the program where you want to measure CPU time, the CPU time measurement routine is
There is also a CPU time measurement method that has a CPU time measurement attribute setting section that allows you to specify whether or not to measure the CPU time, and uses this to measure the CPU time, but it depends on the computer system for which segment to measure the CPU time. was confirmed at the time of shipment. Typically, a CP for every segment that a computer system can recognize.
In many cases, U time is measured or CPU time is measured only for segments within a user application program.
」二連した従来のCPUタイム測定属性設定部を利用し
てCPUタイムを測定するCPUタイム測定方式では、
どのセグメントについてCPUタイムの測定を行うかは
コンピュータシステムの出荷時点で確定していたので、
特定のセグメントを実行したときのCPUタイムやザブ
システム即位のCPUタイム等を測定することができな
いという欠点がある。"In the CPU time measurement method that measures CPU time using two conventional CPU time measurement attribute setting sections,
Since the segment for which CPU time will be measured was determined at the time of shipment of the computer system,
There is a drawback that it is not possible to measure the CPU time when a specific segment is executed, the CPU time of subsystem access, etc.
本発明の目的は、上述の点に鑑み、コマンドによってC
PUタイムを測定したいセグメントを動的にCPUタイ
ム測定属性設定部に設定できるようにしたCPUタイム
測定方式を従供することにある。In view of the above points, an object of the present invention is to
An object of the present invention is to provide a CPU time measurement method in which a segment whose PU time is desired to be measured can be dynamically set in a CPU time measurement attribute setting section.
本発明のCPUタイム測定方式は、ハードうエアの機構
としてセグメント毎にCPUタイムを測定する/しない
を指定できるCPUタイム測定属性設定部を備えるコン
ピュータシステムにおいて、CPUタイムを測定したい
セグメン)・あるいはセグメント群の名前を含むCPU
タイム測定コマンドを入力するCPIJタイム測定コマ
ンド入力手段と、このCPUタイム測定コマンド入力手
段により入力されたCPUタイム測定コマンドを解析し
てコンピユークシステムが認識できるプログラムのセグ
メントの全てに対してセグメントの実行時にCPUタイ
ムを測定するか否かを決定して前記CPUタイム測定属
性設定部に設定するCPUタイム測定コマンド解析手段
とを有する。The CPU time measurement method of the present invention is applicable to a computer system equipped with a CPU time measurement attribute setting section that can specify whether or not to measure CPU time for each segment as a hardware mechanism. CPU containing group name
A CPIJ time measurement command input means for inputting time measurement commands and a CPU time measurement command input means inputted by this CPU time measurement command input means are analyzed to execute segments for all program segments that can be recognized by the computer system. and CPU time measurement command analysis means for determining whether or not to measure CPU time at a given time and setting it in the CPU time measurement attribute setting section.
本発明のCPUタイム測定方式では、CPUタイム測定
コマンド入力手段がCPUタイムを測定したいセグメン
トあるいはセグメント群の名前を含むCPUタイム測定
コマンドを入力し、CPUタイム測定コマンド解析手段
がCPUタイム測定コマンド入力手段により入力された
CPUタイム測定コマンドを解析してコンピュータシス
テムが認識できるプログラムのセグメントの全てに対し
てセグメントの実行時に要したCPUタイムを測定する
か否かを決定してCPUタイム測定属性設定部に設定す
る。In the CPU time measurement method of the present invention, the CPU time measurement command input means inputs a CPU time measurement command including the name of the segment or segment group for which the CPU time is to be measured, and the CPU time measurement command analysis means inputs the CPU time measurement command input means. Analyzes the input CPU time measurement command, determines whether to measure the CPU time required to execute the segments for all segments of the program that the computer system can recognize, and sets the CPU time measurement attribute setting section. Set.
次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例に係るCPUタイム測定方
式の構成を示すブロック図である。本実施例のCPUタ
イム測定方式は、オペレーティングシステム1に含まれ
セグメント名あるいはサブシステム名を含むCPtJタ
イム測定コマンドを人力するCPUタイム測定コマンド
入力手段2と、同じくオペレーティングシステム1に含
まれCPUタイム測定コマンド入力手段2により入力さ
れたCPLIタイム測定コマンドを解析してコンピュー
タシステムが認識できるプログラムのセグメントの全て
に対してセグメントの実行時にCPtJタイムを測定す
るか否かを決定してハードウェア機構としてのCPUタ
イム測定属性設定部4に設定するC P tJり・イム
測定コマンド解析手段3とから、その主要部が構成され
ている。FIG. 1 is a block diagram showing the configuration of a CPU time measurement method according to an embodiment of the present invention. The CPU time measurement method of this embodiment includes a CPU time measurement command input means 2 which is included in the operating system 1 and manually inputs a CPtJ time measurement command that includes a segment name or a subsystem name; Analyzes the CPLI time measurement command input by the command input means 2 and determines whether or not to measure CPtJ time during segment execution for all segments of the program that can be recognized by the computer system. The main part thereof is composed of a C PtJ time measurement command analysis means 3 which is set in the CPU time measurement attribute setting section 4 .
次に、このように構成された本実施例のCl) Uタイ
ム測定方式の動作について説明する。Next, the operation of the Cl) U time measurement method of this embodiment configured as described above will be explained.
CPUタイムを測定したいセグメント名あるいはザブシ
ステム名を含むCPUタイム測定コマンドをコンソール
、カードリーグ等の入力装置からコンピュータシステム
に投入すると、オペレーティングシステム】のCPUタ
イム測定コマンl゛入力手段2は、投入されたコCPU
タイム測定マントを入力し、CPUタイム測定コマンド
解析手段3に渡す。When a CPU time measurement command containing the segment name or subsystem name for which you want to measure CPU time is input to the computer system from an input device such as a console or card league, the CPU time measurement command input means 2 of the operating system is input. Octopus CPU
The time measurement cloak is input and passed to the CPU time measurement command analysis means 3.
次に、CPUタイム測定コマンド解析手段3は、CPU
タイム測定コマンド入力手段2から渡されたC P U
タイム測定コマンドを解析し、セグメント名あるいばり
・ブシステム名をもとにしてコンピュータシステムが実
際に認識できる物理的なセグメント番号あるいはセグメ
ント番号群に変換する。Next, the CPU time measurement command analysis means 3
CPU passed from time measurement command input means 2
It analyzes the time measurement command and converts it into a physical segment number or group of segment numbers that can actually be recognized by the computer system based on the segment name or the system name.
次に、CPUタイム測定コマンド解析手段3は、変換さ
れたセグメンj・番号あるいはセグメント番号群をCl
) Uタイム測定属性設定部4に設定する。Next, the CPU time measurement command analysis means 3 converts the converted segment j number or segment number group into Cl
) Set in the U time measurement attribute setting section 4.
ごの結果、CP Uタイムを測定したいセグメントの範
囲が決定される。As a result, the range of segments for which the CPU time is to be measured is determined.
いま、例えば、オペレーティングシステム1中のデータ
ベース管理部というザブシステムが物理セグメント番号
(090,091,092,110、Iil、)の5つ
の物理セグメン)・から構成されていたとする。For example, suppose that a subsystem called a database management section in the operating system 1 is composed of five physical segments with physical segment numbers (090, 091, 092, 110, Iil,).
データベース管理部のサブシステム名のみを含むCPU
タイム測定コマンドが入力されたとすると、CPUタイ
ム測定コマンド入力手段2を介してCPUタイム測定コ
マンドがCPUタイム測定コマンド解析手段3に渡され
る。CPU that includes only the database management subsystem name
If a time measurement command is input, the CPU time measurement command is passed to the CPU time measurement command analysis means 3 via the CPU time measurement command input means 2.
CPUタイム測定コマンド解析手段3は、渡されたCP
Uタイム測定コマンドを解析して、5つの物理セグメン
ト番号(090,091,092,110,111)を
発生させ、それぞれの物理セグメント番号をCPUタイ
ム測定属性設定部2に入力する。The CPU time measurement command analysis means 3
The U time measurement command is analyzed to generate five physical segment numbers (090, 091, 092, 110, 111), and each physical segment number is input to the CPU time measurement attribute setting section 2.
CPUタイム測定属性設定部2では、入力された5つの
物理セグメン]・番号(090,091092,110
,1,]、1.)が示ず5つのセグメントのcpuタイ
ム測定属性を“測定する゛に変更し、他のセグメントの
CPUタイム測定属性を“測定しない”に変更する。In the CPU time measurement attribute setting section 2, the input five physical segments]・numbers (090, 091092, 110
,1,],1. ) is not shown, change the CPU time measurement attributes of the five segments to "Measure", and change the CPU time measurement attributes of the other segments to "Do not measure".
以上の操作により、データベース管理部を実行したCP
Uタイムのみを測定することが可能となる。With the above operations, the CP that executed the database management part
It becomes possible to measure only the U time.
以上説明したように本発明は、セグメント名あるいはサ
ブシステム名を含むCPUタイム測定コマンドの投入に
よってCPUタイムを測定したいセグメントを動的に設
定できるようにしたことにより、プログラムの性能評価
を行う場合にどこのセグメントでCPUタイムを多く消
費しているかが簡明にわかり、性能向上のための強力な
道具として利用することができるという効果がある。As explained above, the present invention makes it possible to dynamically set the segment for which the CPU time is to be measured by inputting a CPU time measurement command that includes the segment name or subsystem name. This has the effect of making it easy to see which segment is consuming the most CPU time, and can be used as a powerful tool to improve performance.
第1図は本発明の一実施例に係るcpuタイム測定方式
の構成を示すブロック図である。
図において、
1・・・オペレーティングシステム、
2・・・CPUタイム測定コマンド入力手段、3・・・
CPUタイム測定コマンド解析手段、4・・・cpuタ
イム測定属性設定部である。
特許出願人 1コ本電気株式会社FIG. 1 is a block diagram showing the configuration of a CPU time measurement method according to an embodiment of the present invention. In the figure, 1...Operating system, 2...CPU time measurement command input means, 3...
CPU time measurement command analysis means, 4... CPU time measurement attribute setting unit. Patent applicant: 1kohon Electric Co., Ltd.
Claims (1)
を測定する/しないを指定できるCPUタイム測定属性
設定部を備えるコンピュータシステムにおいて、 CPUタイムを測定したいセグメントあるいはセグメン
ト群の名前を含むCPUタイム測定コマンドを入力する
CPUタイム測定コマンド入力手段と、 このCPUタイム測定コマンド入力手段により入力され
たCPUタイム測定コマンドを解析してコンピュータシ
ステムが認識できるプログラムのセグメントの全てに対
してセグメントの実行時にCPUタイムを測定するか否
かを決定して前記CPUタイム測定属性設定部に設定す
るCPUタイム測定コマンド解析手段と を有することを特徴とするCPUタイム測定方式。[Claims] In a computer system equipped with a CPU time measurement attribute setting section that can specify whether or not to measure CPU time for each segment as a hardware mechanism, a CPU that includes the name of a segment or a group of segments whose CPU time is to be measured. A CPU time measurement command input means for inputting a time measurement command; and a CPU time measurement command input means for inputting a time measurement command; and a CPU time measurement command input means for analyzing the CPU time measurement command inputted by the CPU time measurement command input means for all program segments that can be recognized by the computer system when executing the segment. A CPU time measurement method comprising: a CPU time measurement command analysis means for determining whether or not to measure CPU time and setting it in the CPU time measurement attribute setting section.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2142671A JPH0436844A (en) | 1990-05-31 | 1990-05-31 | Cpu time counting system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2142671A JPH0436844A (en) | 1990-05-31 | 1990-05-31 | Cpu time counting system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0436844A true JPH0436844A (en) | 1992-02-06 |
Family
ID=15320797
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2142671A Pending JPH0436844A (en) | 1990-05-31 | 1990-05-31 | Cpu time counting system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0436844A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07152612A (en) * | 1993-11-29 | 1995-06-16 | Nec Corp | Performance data collecting system |
-
1990
- 1990-05-31 JP JP2142671A patent/JPH0436844A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07152612A (en) * | 1993-11-29 | 1995-06-16 | Nec Corp | Performance data collecting system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7072796B2 (en) | Modification risk degree measurement system, modification risk degree measurement method and modification risk degree measurement program | |
| US6807522B1 (en) | Methods for predicting instruction execution efficiency in a proposed computer system | |
| AU2004260392A1 (en) | System and method for implementing quality control rules formulated in accordance with a quality control rule grammar | |
| US8701084B1 (en) | Preview of auto-fix changes to software code | |
| US7162713B2 (en) | Difference engine method and apparatus | |
| JPH0436844A (en) | Cpu time counting system | |
| US20040205730A1 (en) | System and method for building libraries and groups of computer programs | |
| KR100521147B1 (en) | The method for log processing of application error information | |
| KR100433549B1 (en) | Method and apparatus for analyzing software | |
| CN117785645A (en) | A verification method, device and electronic equipment for RISC-V instruction set | |
| JP2715904B2 (en) | Computer system performance evaluation device | |
| CN114218117A (en) | Project testing method and device, computer equipment and storage medium | |
| JP3011115B2 (en) | Debug system | |
| JPH04186445A (en) | Automatic analytical system for system performance | |
| Reston | Testing of the rapidly developed prototypes | |
| JPH0298750A (en) | Bug correction device | |
| JP2697601B2 (en) | Simulation method of multiplication / division instruction interlock | |
| JPS63174130A (en) | System for detecting value unsettled variable name | |
| Nimori et al. | Firmware system design for a frequency and time interval analyzer | |
| JPH11224185A (en) | Variable influence analysis device and variable influence analysis method | |
| JPH1091479A (en) | Program debugging system, program debugging method and storage medium storing debugging program | |
| JPS607554A (en) | Measuring system for performance of computer system | |
| JPH05257741A (en) | Executing performance measurement system for program | |
| JPH035821A (en) | System for analyzing job control language | |
| Manacero Jr et al. | Dynamic instrumentation of loop blocks in parallel programs performance analysis |