JPH09128415A - Program processing resource measuring instrument - Google Patents

Program processing resource measuring instrument

Info

Publication number
JPH09128415A
JPH09128415A JP7280553A JP28055395A JPH09128415A JP H09128415 A JPH09128415 A JP H09128415A JP 7280553 A JP7280553 A JP 7280553A JP 28055395 A JP28055395 A JP 28055395A JP H09128415 A JPH09128415 A JP H09128415A
Authority
JP
Japan
Prior art keywords
processing resource
program
execution
processing
resource
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.)
Withdrawn
Application number
JP7280553A
Other languages
Japanese (ja)
Inventor
Yoshiaki Katayama
義明 片山
Tamotsu Inoue
保 井上
Atsushi Uchida
敦 内田
Yumi Kawabe
由美 川邊
Takashi Kaneko
▲隆▼ 金子
Hiroko Kitayama
浩子 喜多山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP7280553A priority Critical patent/JPH09128415A/en
Publication of JPH09128415A publication Critical patent/JPH09128415A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To easily and efficiently optimize the number of processing resources without adding modification, etc., to a program to be measured. SOLUTION: A false execution means 2 successively falsely executes the mechanical instruction of the program to be measured 1 to collect an execution history including an execution address. Holding measurement data 3 includes an capturing condition and a releasing condition (the address, etc., of capturing and releasing programs) concerning plural processing resources used by the program to be measured 1 and is set in advance. A processing resource checking means 4 detects whether the execution address of the falsely executed mechanical instruction is suited or not for one capturing condition and the releasing condition of holding measurement data 3. A processing resource data collecting means 5, concerning each of processing resources captured and released by the execution of the program to be measured 1, collects processing resource measuring data including the number of holding steps being the total number of the mechanical instruction executed from capturing detection and releasing detection.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、電子交換機等の計
算機システムの動作(プログラムの実行)のシミュレー
ション(擬似実行)を行うプログラムシミュレータに適
用されるプログラム処理リソース測定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program processing resource measuring apparatus applied to a program simulator for simulating (pseudo-execution) an operation (execution of a program) of a computer system such as an electronic exchange.

【0002】交換処理のような多重処理プログラムにお
いて使用する各種の処理リソース(プログラム実行のた
めの処理実行メモリ、装置制御管理メモリ等)は、その
数が多い場合には内部処理の輻輳、処理遅延、処理不能
を招き、最悪の場合にはシステムの停止を引き起こす原
因になることがあり、少ない場合には潜在的能力がある
にもかかわらずこれを使用しないことになるから非効率
的であるため、処理対象設備(ターゲットマシン)に対
して適正な数に設定する必要があり、これを容易且つ高
効率的に求めるための技術が要望されている。
Various processing resources (processing execution memory for program execution, device control management memory, etc.) used in a multi-processing program such as exchange processing, when the number of them is large, cause congestion of internal processing and processing delay. It is inefficient because it causes inability to process and, in the worst case, it causes a system outage, and in the few cases, it does not use it despite its potential. It is necessary to set an appropriate number for the equipment to be processed (target machine), and there is a demand for a technique for obtaining this easily and efficiently.

【0003】[0003]

【従来の技術】処理リソースの数を適正化するめに従来
より採られていた手法としては、以下のようなものがあ
る。
2. Description of the Related Art The following methods have been conventionally adopted to optimize the number of processing resources.

【0004】(1)被測定プログラムを人手により机上
で解析し、各処理リソースについて、処理リソースの捕
捉から解放までに実行する機械命令の数である保留ステ
ップ数を計数し、この保留ステップ数に平均命令実行時
間を積算することにより、処理リソースの捕捉から解放
までに要する保留時間を算出し、この保留時間に基づ
き、所定の関係式に従って、処理リソースの適正数を算
出する。
(1) A program to be measured is manually analyzed on a desk, and for each processing resource, the number of reserved steps, which is the number of machine instructions to be executed from the acquisition to the release of the processing resource, is counted, and this reserved step number is calculated. By accumulating the average instruction execution time, the hold time required from the capture to release of the processing resource is calculated, and based on this hold time, the appropriate number of processing resources is calculated according to a predetermined relational expression.

【0005】(2)被測定プログラムに予め保留ステッ
プ数を測定するためのサポートプログラムを埋め込んで
おき、必要に応じてこれを含めて被測定プログラムを実
行し、保留時間を算出し、処理リソースの適正数を算出
する。
(2) A program to be measured is embedded with a support program for measuring the number of holding steps in advance, and the program to be measured including this is executed as necessary, the holding time is calculated, and processing resources are stored. Calculate the appropriate number.

【0006】(3)被測定プログラムの走行を、バスに
接続されたハード的な専用の監視装置により監視するこ
とにより、保留時間を算出し、処理リソースの適正数を
算出する。
(3) The running time of the program to be measured is monitored by a hardware dedicated monitoring device connected to the bus to calculate the hold time and the appropriate number of processing resources.

【0007】[0007]

【発明が解決しようとする課題】しかし、処理リソース
は一般的に、数十種類〜数百種類もあるため、前記従来
技術によると、以下のような問題があった。
However, since there are generally several tens to several hundreds of processing resources, the above-mentioned prior art has the following problems.

【0008】(1)前記の被測定プログラムを人手によ
り机上で解析するものでは、かかる作業は極めて煩雑な
作業であるから、作業工数が多大であるとともに、測定
結果を得るまでに長時間を要する。
(1) In the case where the program to be measured is manually analyzed on a desk, since such a work is extremely complicated, the number of man-hours is large and it takes a long time to obtain the measurement result. .

【0009】(2)前記の被測定プログラムにサポート
プログラムを埋め込むものでは、被測定プログラム毎の
それぞれに対応してサポートプログラムを埋め込む必要
があるから、同様に作業工数が多大であり、被測定プロ
グラムの改造を必要とするから、実プログラム環境と異
なる。
(2) When the support program is embedded in the program to be measured, it is necessary to embed the support program corresponding to each program to be measured. Since it requires remodeling, it differs from the actual program environment.

【0010】(3)、前記の監視装置によるものでは、
専用のハード的な装置が必要であるとともに、測定ポイ
ントの設定等の作業が煩雑である。よって、本発明の目
的は、被測定プログラムに何らの付加、改造を加えるこ
となく処理リソースの数の適正化を容易且つ高効率的に
行うことができるプログラム処理リソース測定装置を提
供することである。
(3) With the above-mentioned monitoring device,
A dedicated hardware device is required, and work such as setting measurement points is complicated. Therefore, an object of the present invention is to provide a program processing resource measuring device that can easily and efficiently optimize the number of processing resources without adding or modifying the measured program. .

【0011】[0011]

【課題を解決するための手段】本願において開示される
発明のうち、代表的なものの概要を図1を参照して簡単
に説明すれば、以下のとおりである。
Among the inventions disclosed in the present application, a typical one will be briefly described with reference to FIG. 1 as follows.

【0012】即ち、本発明のプログラム処理リソース測
定装置は、被測定プログラムが記憶される被測定プログ
ラム記憶手段1と、前記被測定プログラムの機械命令を
順次擬似的に実行して、実行アドレスを含む実行履歴を
収集する擬似実行手段2と、前記被測定プログラムが使
用する複数の処理リソースについての捕捉条件及び解放
条件を含む処理リソース保留測定データが予め記憶され
た保留測定データ記憶手段3とを備えている。
That is, the program processing resource measuring apparatus of the present invention includes a measured program storing means 1 in which a measured program is stored and a machine instruction of the measured program, which are pseudo-executed sequentially to include an execution address. The simulation execution means 2 for collecting execution history, and the reserved measurement data storage means 3 in which processing resource reserved measurement data including capture conditions and release conditions for a plurality of processing resources used by the measured program are stored in advance. ing.

【0013】さらに、前記擬似実行手段2により擬似的
に実行された機械命令の実行アドレスが前記処理リソー
ス保留測定データの捕捉条件に適合するか否かを検出す
るとともに、前記擬似実行手段2により擬似的に実行さ
れた機械命令の実行アドレスが前記処理リソース保留測
定データの解放条件に適合するか否かを検出する処理リ
ソースチェック手段4と、前記被測定プログラムの実行
により捕捉・解放された処理リソースのそれぞれについ
て、前記処理リソースチェック手段4による捕捉検出か
ら解放検出までに実行された機械命令の総数である保留
ステップ数を含む処理リソース測定データを収集する処
理リソースデータ収集手段5とを備えている。
Further, it is detected whether the execution address of the machine instruction pseudo-executed by the pseudo-execution means 2 conforms to the capture condition of the processing resource reservation measurement data, and the pseudo-execution means 2 makes pseudo-execution. Processing resource check means 4 for detecting whether or not the execution address of the machine instruction that has been executed in a physical manner meets the release condition of the processing resource reserved measurement data, and the processing resource captured / released by the execution of the measured program. Processing resource data collecting means 5 for collecting processing resource measurement data including the number of pending steps, which is the total number of machine instructions executed from the detection of detection by the processing resource check means 4 to the detection of release. .

【0014】擬似実行手段2は被測定プログラム記憶手
段1の被測定プログラムの機械命令を擬似的に実行し、
処理リソースチェック手段4は、該機械命令の実行アド
レスが保留測定データ記憶手段3の捕捉条件又は解放条
件に適合するか否かをチェックし、次機械命令について
これらの処理を順次繰り返す。実行アドレスが捕捉条件
に適合した場合には、処理リソースデータ収集手段5
は、擬似実行手段2による機械命令の実行数の計測を開
始する。実行アドレスが解放条件に適合した場合には、
処理リソースデータ収集手段5は、機械命令の実行数の
計測を終了し、これにより、保留ステップ数が求まる。
The pseudo execution means 2 pseudo-executes the machine instruction of the measured program of the measured program storage means 1,
The processing resource check means 4 checks whether or not the execution address of the machine instruction matches the capture condition or release condition of the reserved measurement data storage means 3, and sequentially repeats these processes for the next machine instruction. When the execution address matches the capture condition, the processing resource data collecting means 5
Starts counting the number of machine instructions executed by the pseudo execution means 2. If the execution address meets the release condition,
The processing resource data collection means 5 finishes measuring the number of executed machine instructions, and thereby the number of reserved steps is obtained.

【0015】この保留ステップ数に平均命令実行時間を
積算することにより、処理リソースの捕捉から解放まで
に要する保留時間を算出し、この保留時間に基づき、所
定の関係式に従って、処理リソースの適正数を算出す
る。
An average instruction execution time is added to the number of holding steps to calculate a holding time required from capturing to releasing the processing resource, and based on the holding time, an appropriate number of processing resources is calculated according to a predetermined relational expression. To calculate.

【0016】本発明によるプログラム処理リソース測定
装置を用いることにより、被測定プログラムに何らの改
造等を施すことなく、保留ステップ数が自動的に求めら
れるから、従来技術と比較して、作業工数が極めて少な
くなるとともに、短時間で保留プテップ数を得ることが
でき、処理リソースの数の適正化を容易且つ高効率的に
行うことができるようになる。
By using the program processing resource measuring device according to the present invention, the number of holding steps can be automatically obtained without any modification of the program to be measured. The number of pending steps can be obtained in a short time as well as the number is extremely small, and the number of processing resources can be optimized easily and highly efficiently.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して詳細に説明する。図2は本発明の一実施の形
態の全体構成を示すブロック図であり、本発明のプログ
ラム処理リソース測定装置が適用されたプログラムシミ
ュレータを示している。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 2 is a block diagram showing the overall configuration of an embodiment of the present invention, and shows a program simulator to which the program processing resource measuring device of the present invention is applied.

【0018】同図において、11はコマンド制御部であ
り、12はリソース管理フラグ記憶部である。コマンド
制御部11はオペレータにより入力されたコマンドを分
析するコマンド分析機能11a及び入力コマンドに従っ
て処理リソースの測定を実行するか否かを登録するリソ
ース管理フラグ(「0」の場合は非登録で測定を行わ
ず、「1」の場合は登録で測定を行う)をリソース管理
フラグ記憶部12に設定するプログラム処理リソース登
録機能11bを有している。
In the figure, 11 is a command control unit, and 12 is a resource management flag storage unit. The command control unit 11 registers a command analysis function 11a for analyzing a command input by the operator and a resource management flag for registering whether or not to measure the processing resource according to the input command (in the case of “0”, the measurement is not registered and measurement is not performed. It has a program processing resource registration function 11b for setting in the resource management flag storage unit 12 that the measurement is carried out by registration if not performed (1).

【0019】13は被測定プログラム記憶部に記憶され
た被測定プログラムであり、被測定プログラム13は、
例えば図3に示されているように、複数のプログラム
A、B、C等からなる実行部13a及び該実行部13a
が使用する処理リソース〔プログラム実行のための処理
実行メモリ(トランザクション)、装置制御管理メモリ
(トランク)等、数十〜数百種類ある〕を管理するリソ
ース管理部13bから構成されている。図3には、プロ
グラムBにより処理実行メモリ(XXTR)が捕捉さ
れ、プログラムAにより該処理実行メモリが解放されて
いることが示されている。
Reference numeral 13 is a measured program stored in the measured program storage section, and the measured program 13 is
For example, as shown in FIG. 3, an execution unit 13a including a plurality of programs A, B, C, etc. and the execution unit 13a.
Is configured by a resource management unit 13b that manages the processing resources [process execution memory (transaction) for program execution, device control management memory (trunk), etc., of which there are several tens to several hundred types]. FIG. 3 shows that the process execution memory (XXTR) is captured by the program B and the process execution memory is released by the program A.

【0020】図2において、14はシミュレート実行部
であり、シミュレート実行部14は、オペランド読出機
能14a、機械命令擬似機能14b、プログラム実行履
歴収集機能14c、処理リソースチェック機能14d、
処理リソースデータ収集機能14eを備えている。
In FIG. 2, reference numeral 14 is a simulation execution unit, and the simulation execution unit 14 includes an operand read function 14a, a machine instruction pseudo function 14b, a program execution history collection function 14c, a processing resource check function 14d,
A processing resource data collection function 14e is provided.

【0021】15、16、17はそれぞれ対応する記憶
部に記憶されるデータであり、15は処理リソース保留
測定データ、16は処理リソース状態データ、17は処
理リソース測定データである。
Reference numerals 15, 16 and 17 denote data stored in corresponding storage units, 15 denotes processing resource reservation measurement data, 16 denotes processing resource status data, and 17 denotes processing resource measurement data.

【0022】処理リソース保留測定データ15は、被測
定プログラム13が使用する複数の処理リソースのそれ
ぞれについての捕捉条件及び解放条件を含むデータであ
る。より具体的には、図4(A)に示されているよう
に、被測定プログラム13が使用する各処理リソースに
ついて、捕捉条件として捕捉実行部(捕捉実行プログラ
ム)の絶対アドレス及び処理リソースを他の処理リソー
スから識別するためのリソース識別、解放条件として解
放実行部(解放実行プログラム)の絶対アドレス及びリ
ソース識別が設定されたデータである。この処理リソー
ス保留測定データ15は、被測定プログラム13の設計
段階において判明しているデータであり、予め作成され
て対応する記憶部に設定されている。図4(A)では、
例えば、処理実行メモリテーブル(トランザクション)
についての処理リソースXXTRの捕捉条件として、ア
ドレス(23D5B)、リソース識別(RID=R
6)、リソース番号(RNO=R5)となっている。
The processing resource reservation measurement data 15 is data including a capture condition and a release condition for each of the plurality of processing resources used by the measured program 13. More specifically, as shown in FIG. 4A, for each processing resource used by the measured program 13, the absolute address of the acquisition execution unit (acquisition execution program) and the processing resource are set as acquisition conditions. Of the processing execution resource, the absolute address of the release execution unit (release execution program) and the resource identification are set as release conditions. The processing resource reservation measurement data 15 is data that is known at the design stage of the measured program 13, and is created in advance and set in the corresponding storage unit. In FIG. 4 (A),
For example, process execution memory table (transaction)
As the acquisition condition of the processing resource XXTR, the address (23D5B), the resource identification (RID = R
6) and the resource number (RNO = R5).

【0023】処理リソース状態データ16は、シミュレ
ート実行部14による処理の途中に作成・使用されるデ
ータであり、被測定プログラム13が使用する複数の処
理リソースのそれぞれについての状態を示すリソース状
態フラグ16a並びに保留ステップ数のカウンタを設定
するリソース保留カウンタ16bで構成される。より具
体的には、図4(B)に示されているように、状態フラ
グ16aには、処理リソースを捕捉した場合を示す
「1」(HUNT)、処理リソースを解放した場合を示
す「2」(FREE)、その他の場合を示す「0」(O
THER)並びにリソース識別(RID)、リソース番
号(RNO)が処理リソースチェック機能14dにより
設定される。又、リソース保留カウンタ16bは、処理
リソースの捕捉により計数が開始され、機械命令が擬似
実行される毎に「1」が加算され、該処理リソースの解
放により計数が終了されるものであり、処理リソースデ
ータ収集機能14eにより設定される。リソース保留カ
ウンタ16bは測定処理が終了した時点で、カウンタ値
が測定結果としての保留ステップ数となる。
The processing resource status data 16 is data created and used during the processing by the simulation executing unit 14, and is a resource status flag indicating the status of each of the plurality of processing resources used by the measured program 13. 16a and a resource reservation counter 16b that sets a counter for the number of reservation steps. More specifically, as shown in FIG. 4B, the status flag 16a includes "1" (HUNT) indicating that the processing resource is captured and "2" indicating that the processing resource is released. , (0) (O) indicating other cases
THER), resource identification (RID), and resource number (RNO) are set by the processing resource check function 14d. The resource suspension counter 16b starts counting when a processing resource is captured, increments "1" each time a machine instruction is pseudo-executed, and ends counting when the processing resource is released. It is set by the resource data collection function 14e. When the measurement processing is completed, the resource holding counter 16b has the counter value as the number of holding steps as a measurement result.

【0024】処理リソース測定データ17は、図4
(C)に示されているように、被測定プログラム13の
実行により捕捉・解放された処理リソースのそれぞれに
ついて、被測定プログラム13の該処理リソースの捕捉
を要求したプログラム名及び捕捉要求アドレス、該処理
リソースの解放を要求したプログラム名及び解放要求ア
ドレス、並びに保留ステップ数カウンタが設定されてな
るデータである。
The processing resource measurement data 17 is shown in FIG.
As shown in (C), for each of the processing resources acquired and released by the execution of the measured program 13, the program name and the acquisition request address of the measured program 13 that requested acquisition of the processing resource, This is data in which a program name and a release request address that have requested release of processing resources and a pending step number counter are set.

【0025】しかして、オペレータは被測定プログラム
13の特定及びこれに対応する処理リソース保留測定デ
ータ15の特定のための入力をコマンド制御部11に対
して行う。次いで、処理リソースの測定を行う場合に
は、これに対応するコマンドを入力すると、コマンド制
御部11のコマンド分析機能11aがこれを分析し、プ
ログラム処理リソース登録機能11bが、リソース管理
フラグ12に登録を示す「1」を設定する。なお、被測
定プログラム13のシミュレーションのみで、処理リソ
ースの測定を行わない場合には、これに対応するコマン
ドを入力すると、コマンド制御部11のコマンド分析機
能11aがこれを分析し、プログラム処理リソース登録
機能11bが、リソース管理フラグ12に非登録を示す
「0」を設定する。
Thus, the operator inputs to the command control section 11 the specification of the measured program 13 and the specification of the processing resource reservation measurement data 15 corresponding thereto. Next, in the case of measuring the processing resource, when the command corresponding to this is input, the command analysis function 11a of the command control unit 11 analyzes it, and the program processing resource registration function 11b registers it in the resource management flag 12. Is set to "1". When the processing resource is not measured but only the simulation of the measured program 13 is performed, a command corresponding to this is input, and the command analysis function 11a of the command control unit 11 analyzes it and registers the program processing resource. The function 11b sets “0” indicating non-registration in the resource management flag 12.

【0026】シミュレート実行部14においては、オペ
ランド読出機能14aが被測定プログラム13から機械
命令(実行命令)を読み出し、機械命令擬似機能14b
は該機械命令を擬似的に実行する。プログラム実行履歴
収集機能14cは、この機械命令の擬似実行に伴う実行
履歴(実行アドレス、レジスタ値等)を収集し、被試験
プログラム実行履歴データ18として対応する記憶部に
保管するとともに、実行アドレスを処理リソースチェッ
ク機能14dに渡す。
In the simulation executing section 14, the operand reading function 14a reads a machine instruction (execution instruction) from the measured program 13, and the machine instruction pseudo function 14b.
Executes the machine instruction in a pseudo manner. The program execution history collection function 14c collects an execution history (execution address, register value, etc.) associated with the pseudo execution of the machine instruction, stores the execution history as program under test execution history data 18 and stores the execution address. It is passed to the processing resource check function 14d.

【0027】処理リソースチェック機能14dは、リソ
ース管理フラグ12を調べ、登録「1」の場合には処理
リソース保留測定データ15の処理リソースの捕捉条件
又は解放条件に、プログラム実行履歴収集機能14cか
ら渡された該実行アドレスが適合するか否か、即ち、捕
捉条件又は解放条件の絶対アドレスと該実行アドレスが
一致するか否か等をチェックする。
The processing resource check function 14d checks the resource management flag 12 and, in the case of registration "1", passes it from the program execution history collection function 14c to the acquisition condition or release condition of the processing resource of the processing resource reservation measurement data 15. It is checked whether or not the executed execution address matches, that is, whether or not the absolute address of the capture condition or the release condition matches the executed address.

【0028】捕捉条件の絶対アドレスが該実行アドレス
と一致する場合には、処理リソース状態データ16の該
処理リソースについての状態フラグ16aを「1」(H
UNT)に設定し、解放条件の絶対アドレスが該実行ア
ドレスと一致する場合には、処理リソース状態データ1
6の該処理リソースについての状態フラグ16aを
「2」(FREE)に設定する。
When the absolute address of the capture condition matches the execution address, the status flag 16a for the processing resource of the processing resource status data 16 is set to "1" (H
(UNT) and the absolute address of the release condition matches the execution address, processing resource status data 1
The state flag 16a for the processing resource 6 is set to "2" (FREE).

【0029】次いで、処理リソースデータ収集機能14
eは、処理リソース状態データ16に従って、以下のよ
うな処理を行う。即ち、処理リソース状態データ16の
該処理リソースについての状態フラグ16aが「1」
(HUNT)の場合には、プログラム実行履歴収集機能
14cによる被試験プログラム実行履歴データ18を該
実行アドレスに基づき参照して、処理リソース測定デー
タ17に該処理リソースを捕捉したプログラムの識別
(捕捉プログラム名)及び捕捉要求アドレスを設定し、
リソース保留カウンタ16bの該処理リソースについて
のカウントフラグを「1」(ON)に設定し、該処理リ
ソースを識別するためのリソース識別(RID)、リソ
ース番号(RNO)を設定する。
Next, the processing resource data collection function 14
The e performs the following processing according to the processing resource status data 16. That is, the status flag 16a for the processing resource of the processing resource status data 16 is "1".
In the case of (HUNT), the program execution history collection function 14c refers to the program execution history data 18 under test based on the execution address to identify the program that captured the processing resource in the processing resource measurement data 17 (the capture program). Name) and capture request address,
A count flag for the processing resource of the resource holding counter 16b is set to "1" (ON), and a resource identification (RID) and a resource number (RNO) for identifying the processing resource are set.

【0030】処理リソース保留カウンタ16bの該処理
リソースについてのカウントフラグが「1」(ON)の
場合には、処理リソース保留カウンタ16bの該処理リ
ソースに対応するカウンタを更新(1を加算)する。
When the count flag for the processing resource of the processing resource suspension counter 16b is "1" (ON), the counter corresponding to the processing resource of the processing resource suspension counter 16b is updated (1 is added).

【0031】処理リソース状態データ16の該処理リソ
ースについての状態フラグ16aが「2」(FREE)
の場合には、プログラム実行履歴収集機能14cによる
被試験プログラム実行履歴データ18を該実行アドレス
に基づき参照して、処理リソース測定データ17に該処
理リソースを解放したプログラムの識別(解放プログラ
ム名)及び解放要求アドレス並びにリソース保留カウン
タ16bのカウンタを設定し、リソース保留カウンタ1
6bのカウントフラグを「0」(OFF)に設定する。
The status flag 16a for the processing resource of the processing resource status data 16 is "2" (FREE).
In this case, the program execution history collection function 14c refers to the program execution history data 18 under test based on the execution address, and the processing resource measurement data 17 identifies the program that released the processing resource (released program name) and The release request address and the counter of the resource holding counter 16b are set, and the resource holding counter 1
The count flag of 6b is set to "0" (OFF).

【0032】処理リソースデータ収集機能14eによる
前記処理の終了の後、又は処理リソースチェック機能1
4dにより、リソース管理フラグ12が非登録「0」で
あることが検出された場合には、走行制御部19に制御
を渡し、走行制御部19はシミュレーション処理の停止
又は終了を検出しているときは、コマンド制御部11に
制御を渡してシミュレーション処理を終了する。シミュ
レーション処理の停止又は終了を検出していないときに
は、シミュレート実行部14にこれを通知して、オペラ
ンド読出機能14aによる次機械命令の読み出し、機械
命令擬似機能14bによる擬似実行等の前記の処理を繰
り返す。
After completion of the processing by the processing resource data collection function 14e, or the processing resource check function 1
When it is detected by 4d that the resource management flag 12 is non-registration "0", control is passed to the traveling control unit 19, and the traveling control unit 19 detects stop or end of the simulation process. Passes control to the command control unit 11 and ends the simulation process. When the stop or the end of the simulation processing is not detected, the simulation execution unit 14 is notified of this, and the above-described processing such as the reading of the next machine instruction by the operand read function 14a and the pseudo execution by the machine instruction pseudo function 14b is executed. repeat.

【0033】シミュレーション処理が終了したならば、
処理リソース測定データ17に設定されている各処理リ
ソースについての保留ステップ数に、平均命令実行時間
を積算することにより、処理リソースの捕捉から解放ま
でに要する保留時間を算出し、この保留時間に基づき、
所定の関係式に従って、処理リソースの適正数を算出す
る。
When the simulation process is completed,
The average instruction execution time is added to the number of holding steps for each processing resource set in the processing resource measurement data 17 to calculate the holding time required from capturing to releasing the processing resource, and based on this holding time ,
An appropriate number of processing resources is calculated according to a predetermined relational expression.

【0034】本実施の形態によると、被測定プログラム
を人手により机上で解析するものではなく、プログラム
シミュレータの付加機能として処理リソースの測定機能
を実現しており、被測定プログラムに改造等を施した
り、専用のハード的な監視装置を用いるものではなく、
処理リソースの捕捉から解放までに実行する機械命令の
数である保留ステップ数を、極めて高効率的に導き出す
ことができる。
According to the present embodiment, the program to be measured is not manually analyzed on a desk, but the function of measuring processing resources is realized as an additional function of the program simulator, and the program to be measured may be modified or the like. , Instead of using a dedicated hardware monitoring device,
The number of reserved steps, which is the number of machine instructions executed from the acquisition to the release of the processing resource, can be derived extremely efficiently.

【0035】[0035]

【発明の効果】本発明は以上説明したように構成したの
で、被測定プログラムに何らの付加、改造を加えること
なく処理リソースの数の適正化を容易且つ高効率的に行
うことができるようになるという効果を奏する。
Since the present invention is configured as described above, it is possible to easily and efficiently optimize the number of processing resources without adding or modifying the program to be measured. Has the effect of becoming.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の原理構成を示すブロック図である。FIG. 1 is a block diagram showing the principle configuration of the present invention.

【図2】本発明一実施の形態の全体構成を示すブロック
図である。
FIG. 2 is a block diagram showing an overall configuration of an embodiment of the present invention.

【図3】図2における被測定プログラムの一例を示す図
である。
FIG. 3 is a diagram showing an example of a measured program in FIG.

【図4】図2における処理リソース保留測定データの一
例(A)、処理リソース状態データの一例(B)、及び
処理リソース測定データの一例(C)を示す図である。
4 is a diagram showing an example (A) of processing resource reservation measurement data, an example (B) of processing resource state data, and an example (C) of processing resource measurement data in FIG. 2;

【符号の説明】[Explanation of symbols]

1 被測定プログラム記憶手段 2 擬似実行手段 3 保留測定データ記憶手段 4 処理リソースチェック手段 5 処理リソースデータ収集手段 1 Measured Program Storage Means 2 Pseudo Execution Means 3 Suspended Measurement Data Storage Means 4 Processing Resource Checking Means 5 Processing Resource Data Collecting Means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 内田 敦 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 川邊 由美 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 金子 ▲隆▼ 神奈川県横浜市港北区新横浜3丁目9番18 号 富士通コミュニケーション・システム ズ株式会社内 (72)発明者 喜多山 浩子 神奈川県横浜市港北区新横浜3丁目9番18 号 富士通コミュニケーション・システム ズ株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Atsushi Uchida 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor, Yumi Kawabe, 1015, Kamikodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited ( 72) Inventor Kaneko ▲ Takashi 3-9-18 Shin-Yokohama, Kohoku-ku, Yokohama-shi, Kanagawa Within Fujitsu Communication Systems Ltd. (72) Hiroko Kitayama 3-18-18 Shin-Yokohama, Kohoku-ku, Yokohama-shi, Kanagawa Within Fujitsu Communication Systems Limited

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 被測定プログラムが記憶される被測定プ
ログラム記憶手段と、 前記被測定プログラムの機械命令を順次擬似的に実行し
て、実行アドレスを含む実行履歴を収集する擬似実行手
段と、 前記被測定プログラムが使用する複数の処理リソースに
ついての捕捉条件及び解放条件を含む処理リソース保留
測定データが予め記憶された保留測定データ記憶手段
と、 前記擬似実行手段により擬似的に実行された機械命令の
実行アドレスが前記処理リソース保留測定データの捕捉
条件に適合するか否かを検出するとともに、前記擬似実
行手段により擬似的に実行された機械命令の実行アドレ
スが前記処理リソース保留測定データの解放条件に適合
するか否かを検出する処理リソースチェック手段と、 前記被測定プログラムの実行により捕捉・解放された処
理リソースのそれぞれについて、前記処理リソースチェ
ック手段による捕捉検出から解放検出までに実行された
機械命令の総数である保留ステップ数を含む処理リソー
ス測定データを収集する処理リソースデータ収集手段
と、を備えたことを特徴とするプログラム処理リソース
測定装置。
1. A measured program storage means for storing a measured program, and a pseudo execution means for sequentially executing a machine instruction of the measured program in a pseudo manner to collect an execution history including an execution address. Suspended measurement data storage means in which processing resource suspension measurement data including capture conditions and release conditions for a plurality of processing resources used by the measured program are stored in advance, and machine instructions pseudo-executed by the pseudo execution means. The execution address of the machine instruction pseudo-executed by the pseudo execution means is detected as a release condition of the processing resource suspension measurement data while detecting whether or not the execution address conforms to the capture condition of the processing resource suspension measurement data. Processing resource check means for detecting whether or not they are compatible, For each of the released processing resources, processing resource data collection means for collecting processing resource measurement data including the number of pending steps, which is the total number of machine instructions executed from capture detection by the processing resource check means to release detection, A program processing resource measuring device comprising:
【請求項2】 請求項1に記載のプログラム処理リソー
ス測定装置において、 前記保留測定データ記憶手段に記憶される処理リソース
保留測定データの捕捉条件は、前記処理リソースについ
ての前記被測定プログラムの捕捉実行部の絶対アドレス
及びリソース識別を含み、 前記保留測定データ記憶手段に記憶される処理リソース
保留測定データの解放条件は、前記処理リソースについ
ての前記被測定プログラムの解放実行部の絶対アドレス
及びリソース識別を含むことを特徴とするプログラム処
理リソース測定装置。
2. The program processing resource measuring device according to claim 1, wherein the acquisition condition of the processing resource reservation measurement data stored in the reservation measurement data storage means is execution execution of the measurement target program of the processing resource. Including the absolute address and resource identification of the part, the release condition of the processing resource reservation measurement data stored in the reservation measurement data storage means, the absolute address and resource identification of the release execution unit of the measured program for the processing resource. A program processing resource measuring device comprising:
【請求項3】 請求項1に記載のプログラム処理リソー
ス測定装置において、 前記処理リソースデータ収集手段により収集される処理
リソース測定データは、前記被測定プログラムの実行に
より捕捉・解放された処理リソースのそれぞれについ
て、前記保留ステップ数に加えて、捕捉要求アドレス及
び解放要求アドレスを含むことを特徴とするプログラム
処理リソース測定装置。
3. The program processing resource measuring device according to claim 1, wherein the processing resource measurement data collected by the processing resource data collecting unit is each of processing resources captured and released by the execution of the measured program. Regarding the above, in addition to the number of reserved steps, a program processing resource measuring device characterized by including a capture request address and a release request address.
【請求項4】 請求項1に記載のプログラム処理リソー
ス測定装置において、 処理リソースの測定処理を実行するか否かを示すリソー
ス管理フラグが設定されるリソース管理フラグ記憶手段
をさらに備え、 該リソース管理フラグが処理リソースの測定実行を示す
場合には、前記処理リソースチェック手段及び前記処理
リソースデータ収集手段による処理を実行し、該リソー
ス管理フラグが処理リソースの測定非実行を示す場合に
は、前記処理リソースチェック手段及び前記処理リソー
スデータ収集手段による処理を実行しないようにしたこ
とを特徴とするプログラム処理リソース測定装置。
4. The program processing resource measuring device according to claim 1, further comprising a resource management flag storage unit in which a resource management flag indicating whether or not to perform processing resource measurement processing is set, the resource management When the flag indicates the measurement execution of the processing resource, the processing by the processing resource check means and the processing resource data collecting means is executed, and when the resource management flag indicates the non-execution of the processing resource, the processing is executed. A program processing resource measuring device characterized in that processing by the resource checking means and the processing resource data collecting means is not executed.
JP7280553A 1995-10-27 1995-10-27 Program processing resource measuring instrument Withdrawn JPH09128415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7280553A JPH09128415A (en) 1995-10-27 1995-10-27 Program processing resource measuring instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7280553A JPH09128415A (en) 1995-10-27 1995-10-27 Program processing resource measuring instrument

Publications (1)

Publication Number Publication Date
JPH09128415A true JPH09128415A (en) 1997-05-16

Family

ID=17626658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7280553A Withdrawn JPH09128415A (en) 1995-10-27 1995-10-27 Program processing resource measuring instrument

Country Status (1)

Country Link
JP (1) JPH09128415A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8915537B2 (en) 2009-10-21 2014-12-23 Toyota Jidosha Kabushiki Kaisha Vehicle body structure
CN108182142A (en) * 2016-12-08 2018-06-19 武汉安天信息技术有限责任公司 Test resource integration method, system and function test method, system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8915537B2 (en) 2009-10-21 2014-12-23 Toyota Jidosha Kabushiki Kaisha Vehicle body structure
CN108182142A (en) * 2016-12-08 2018-06-19 武汉安天信息技术有限责任公司 Test resource integration method, system and function test method, system

Similar Documents

Publication Publication Date Title
US8141053B2 (en) Call stack sampling using a virtual machine
KR101459867B1 (en) System test apparatus
US10043139B2 (en) Method and apparatus for resolving contention in a computer system
JP5623557B2 (en) Method, apparatus, and computer program in a multi-threaded computing environment for collecting diagnostic data
JPH09128415A (en) Program processing resource measuring instrument
CN106055467B (en) Apparatus including logic analyzer circuit and logic analyzing method
CN113392033B (en) Method and device for determining passive IAST test API coverage rate
CN113282496B (en) Automatic interface testing method, device, equipment and storage medium
JPH0581051A (en) Resource destruction supervisory system
CN111240974B (en) Log output method and device, electronic equipment and medium
CN112199247B (en) Method and device for checking Docker container process activity in non-service state
JPH02166540A (en) Detecting system for access violation
JP2744029B2 (en) System bus monitor for electronic exchange
JP3213792B2 (en) Logic simulation verification method
JP2002132743A (en) Device and method for monitoring memory access and recording medium recording program for memory access monitor
CN115033474A (en) Application program defect detection method and device, electronic equipment and storage medium
JP3212214B2 (en) State transition test equipment
JP3781784B2 (en) Hardware simulation device
JP2771589B2 (en) Automatic setting of program trace information collection environment
JPH04133138A (en) System test supporting method
JPH10307763A (en) Bus monitor device
JPH07248810A (en) Numerical controller
CN113973068A (en) Chaos test method and device, chaos test platform and storage medium
JPS58223854A (en) Data processing system
JPS61290544A (en) Program tracing device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030107