JPS63300334A - Measurement system for number of times of instruction execution of program - Google Patents

Measurement system for number of times of instruction execution of program

Info

Publication number
JPS63300334A
JPS63300334A JP62133380A JP13338087A JPS63300334A JP S63300334 A JPS63300334 A JP S63300334A JP 62133380 A JP62133380 A JP 62133380A JP 13338087 A JP13338087 A JP 13338087A JP S63300334 A JPS63300334 A JP S63300334A
Authority
JP
Japan
Prior art keywords
instruction
branch
address
interrupt
program
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
Application number
JP62133380A
Other languages
Japanese (ja)
Inventor
Kenichi Murakami
健一 村上
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62133380A priority Critical patent/JPS63300334A/en
Publication of JPS63300334A publication Critical patent/JPS63300334A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To obtain reference for the performance improvement of a program (specially, a control program) by outputting not only the total number of instructions which are executed, but also the number of instructions which are executed by the kinds of the instructions and by priority levels to a list to be edited and outputted. CONSTITUTION:A measurement result editing and output part 23 outputs the measurement result list 71 which is so edited that the total of execute instructions and the numbers of times of execution by the kinds of the instructions are known according to the contents of an instruction execution frequency storage array 51 to an output device 7. Further, instruction execution frequency storage arrays for storing the numbers of times of execution by the instructions in an instruction execution storage part 5 are present by the priority levels and after-branch addresses can be stored in an after-branch address storage part 6 corresponding to the priority levels, so not only a program 41 to be measured which is run at a priority level 1, but also plural priority levels can be measured at the same time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、情報処理システムに於けるプログラムの性能
測定方式関し、特にプログラムの命令実行数を測定する
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for measuring the performance of a program in an information processing system, and particularly to a method for measuring the number of executed instructions of a program.

〔従来の技術〕[Conventional technology]

従来、プログラムの性能の基準となるプログラムの命令
実行数を知るには、机上でプログラムの実行過程を予測
しながら計算するか、またはノ1−ドウエアモニタによ
り測定を行っている。
Conventionally, in order to know the number of executed instructions of a program, which is a standard for program performance, calculations are performed on a desk while predicting the program execution process, or measurements are performed using a hardware monitor.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

容を良く理解していなければならず、また、プログラム
の内容を良く理解した担当者であっても相当の時間を必
要とする。また、ハードウェアモニタにより命令実行回
数を測定する方法では、測定の準備が面倒なため、一般
にソフトウェア担当者は使用していないのが現状である
This requires a good understanding of the content of the program, and even for those in charge who have a good understanding of the content of the program, it requires a considerable amount of time. Furthermore, the method of measuring the number of instruction executions using a hardware monitor is generally not used by software engineers because preparation for measurement is troublesome.

本発明の目的は、プログラムの内容を知ることなく、シ
かも簡単に命令実行回数を測定することのできる命令実
行数測定方式を提供することにある。
An object of the present invention is to provide a method for measuring the number of instruction executions that can easily measure the number of instruction executions without knowing the contents of the program.

〔問題点を解決するための手段〕[Means for solving problems]

本発明によるプログラムの命令実行数測定方式は1分岐
命令の実行により分岐後最初の命令が実行される前に優
先レベルと分岐前アドレスと分岐後アドレスとを保持し
て内部割込みを発生させかつこの内部割込みが一個以上
の優先レベル毎に発生できるような分岐命令割込み手段
と、この分岐命令割込み手段の起動および停止を行なう
ための分岐命令割込みモード設定解除手段と、優先レベ
ルに対応させて分岐後アドレスを記憶する分岐後アドレ
ス記憶手段と1分岐命令割込み時に分岐命令割込み手段
から通知される分岐前アドレスと分岐後アドレス記憶手
段によりこの分岐命令割込みの一度前の分岐命令割込み
時に記憶されていてこの分岐命令割込み時の優先レベル
に対応する分岐後アドレスとで示される範囲に存在する
命令を探索し命令の種類毎の個数を解析する命令解析手
段と、この命令解析手段による解析結果である命令の種
類毎の個数を命令の種類毎にかつ優先レベル毎に対応さ
せて累積し記憶する命令数記憶手段と。
The method for measuring the number of instructions executed in a program according to the present invention is to generate an internal interrupt by holding the priority level, pre-branch address, and post-branch address before the first instruction after the branch is executed by executing a single branch instruction. A branch instruction interrupt means that can generate an internal interrupt for each priority level of one or more, a branch instruction interrupt mode setting canceling means for starting and stopping this branch instruction interrupt means, and a branch instruction interrupt mode setting canceling means for starting and stopping this branch instruction interrupt means, The post-branch address storage means stores the address, and the pre-branch address and post-branch address that are notified from the branch instruction interrupt means at the time of one branch instruction interrupt are stored at the time of the branch instruction interrupt just before this branch instruction interrupt. An instruction analysis means that searches for instructions existing in the range indicated by the post-branch address corresponding to the priority level at the time of a branch instruction interrupt and analyzes the number of each type of instructions; Instruction number storage means for accumulating and storing the number of each type in correspondence with each type of instruction and each priority level.

この命令数記憶手段により累積記憶された命令の種類毎
の個数を優先レベル毎に編集出力する編集出力手段とを
備えることを特徴としている。
The present invention is characterized by comprising editing and outputting means for editing and outputting the number of each type of instructions cumulatively stored by the instruction number storage means for each priority level.

〔実施例〕〔Example〕

次に1本発明につbて実施例によって説明する。 Next, one aspect of the present invention will be explained with reference to examples.

第1図は1本発明によるプログラムの命令実行数測定方
式の一実施例の構成を示すブロック図である。第1図を
参照して、7°ログラムの命令実行数測定方式は、入力
操作が行なわれる入力装置lと、入力情報解析部20と
制御部21と命令語解析部22と測定結果編集出力部2
3とを含むプログラム命令実行数測定装置2と1分岐命
令の実行により分岐後最初の命令が実行される前に優先
レベルと分岐前アドレスと分岐後アドレスとを保持して
内部割込みを発生させる分岐命令割込機構30番含む中
央処理装置3と、測定対象プログラム41,42.・・
・、4nを含む主記憶装置4と。
FIG. 1 is a block diagram showing the structure of an embodiment of a method for measuring the number of executed instructions of a program according to the present invention. Referring to FIG. 1, the method for measuring the number of executed instructions in a 7° program consists of an input device l on which an input operation is performed, an input information analysis section 20, a control section 21, a command word analysis section 22, and a measurement result editing/output section. 2
3 and a program instruction execution count measuring device 2 including 1 and 1. A branch that holds a priority level, a pre-branch address, and a post-branch address and generates an internal interrupt before the first instruction after the branch is executed by executing the branch instruction. The central processing unit 3 including the instruction interrupt mechanism No. 30, and the measurement target programs 41, 42 .・・・
. , 4n.

命令毎の実行回数を優先レベル毎に対応して記憶する命
令実行数記憶部5と、優先レベル毎に対応する分岐後ア
ドレス61,62.・・・、5nを次の分岐命令割込み
時まで記憶しておく分岐後アドレス記憶部6と、測定結
果リス)71.72.・・・。
An instruction execution number storage section 5 that stores the number of executions of each instruction corresponding to each priority level, and post-branch addresses 61, 62 . . . corresponding to each priority level. ..., 5n until the next branch instruction interrupt, and the measurement result list) 71.72. ....

7nが出力される出力装置7とを備えている。7n is provided.

そして、命令実行数記憶部5は、命令の区別を示す命令
列50と、優先レベル毎に対応し且つ命令列50の命令
毎に対応し、その命令の実行回数を記憶する命令実行回
数記憶列51,52.・・・。
The instruction execution number storage unit 5 includes an instruction string 50 that indicates the distinction of instructions, and an instruction execution number storage column that corresponds to each priority level and corresponds to each instruction in the instruction string 50 and stores the number of executions of the instruction. 51, 52. ....

5n  (それぞれ優先レベル1,2.・・・nに対応
)とを含む。
5n (corresponding to priority levels 1, 2, . . . n, respectively).

なお、優先レベルlでは測定対象プログラム41と命令
実行回数記憶列51と分岐後アドレス61と測定結果リ
ストア1とが関連し、同じく優先レベル2では測定対象
プログラム42と命令実行回数記憶列52と分岐後アド
レス62と測定結果リストア2とが関連する。従って優
先レベルnでは測定対象プログラム4nと命令実行回数
記憶列5nと分岐後アドレス6nと測定結果リストアn
とが関連することになる。
Note that at priority level 1, the measurement target program 41, instruction execution number storage column 51, post-branch address 61, and measurement result restore 1 are related, and at priority level 2, the measurement target program 42, instruction execution number storage column 52, and branching are related. The rear address 62 and the measurement result restore 2 are related. Therefore, at priority level n, the measurement target program 4n, the instruction execution count storage column 5n, the post-branch address 6n, and the measurement result restore n
will be related.

次に、上述のプログラムの命令実行数測定方式の動作に
ついて説明する。ここで、命令の実行数を測定するプロ
グラムを測定対象プログラム41とすると、測定対象プ
ログラム41の優先レベル番号1が入力装置1から入力
される。
Next, the operation of the method for measuring the number of program instruction executions described above will be explained. Here, assuming that the program for measuring the number of executed instructions is the measurement target program 41, the priority level number 1 of the measurement target program 41 is input from the input device 1.

入力情報解析部20は、この入力された優先レベル番号
1t−制御部21に通知する。この通知を受けた制御部
21は、優先レベル番号1を分岐命令割込みモードにし
て1分岐命令割込機構30を起動すると共に、優先レベ
ル番号1に対応する命令実行数記憶部5内の命令実行回
数記憶列51と分岐後アドレス記憶部6内の分岐後アド
レス61とをゼロで初期化する。その後、主記憶装置4
内での測定対象プログラム41が起動されて分岐命令が
実行されると、中央処理装置3の分岐命令割込機構30
は分岐先のアドレスで分岐命令割込みを発生させてプロ
グラム命令実行数測定装置2の制御部21を動作させる
。制御部21は1分岐命令割込機構30によって優先レ
ベル番号1と測定対象テログラム41内の分岐命令自身
のアドレスである分岐前アドレスとこの分岐命令による
分岐先である分岐後アドレスとが通知される七1分分岐
先アドレス記憶6内の優先レベル番号IK対応する分岐
後アドレス61の内容が示すアドレス(測定対象プログ
ラム41内のアドレス)から分岐命令割込み時通知され
た分岐前アドレスまでの範囲内にある命令を解析するよ
う命令語解析部22に指示すると共に、同じくこの分岐
命令割込み時通知された分岐後アドレスを優先レベル番
号1に対する次の分岐命令割込み時まで分岐後アドレス
61に記憶しておく。次に、命令語解析部22は、制御
部21によって指示された範囲内の命令を解析し、この
解析結果(命令の種類毎の数)を優先レベル番号1に対
応する命令実行回数記憶列51内の命令の種類に対応さ
せて加算する。なお、制御部21は9分岐後アドレス6
1がゼロで初期化されている最初の分岐命令割込み時に
は。
The input information analysis unit 20 notifies the input priority level number 1t to the control unit 21. Upon receiving this notification, the control unit 21 sets the priority level number 1 to the branch instruction interrupt mode, activates the 1 branch instruction interrupt mechanism 30, and executes the instruction in the instruction execution number storage unit 5 corresponding to the priority level number 1. The number storage column 51 and the post-branch address 61 in the post-branch address storage section 6 are initialized to zero. After that, the main memory 4
When the measurement target program 41 is started and a branch instruction is executed, the branch instruction interrupt mechanism 30 of the central processing unit 3
generates a branch instruction interrupt at the branch destination address to operate the control unit 21 of the program instruction execution count measuring device 2. The control unit 21 is notified by the 1-branch instruction interrupt mechanism 30 of the priority level number 1, the pre-branch address which is the address of the branch instruction itself in the measurement target telogram 41, and the post-branch address which is the branch destination of this branch instruction. Within the range from the address indicated by the content of the post-branch address 61 corresponding to the priority level number IK in the branch destination address memory 6 (address in the measurement target program 41) to the pre-branch address notified at the time of a branch instruction interrupt. Instructs the instruction word analysis unit 22 to analyze a certain instruction, and also stores the post-branch address notified at the interrupt of this branch instruction in the post-branch address 61 until the interrupt of the next branch instruction for priority level number 1. . Next, the instruction word analysis unit 22 analyzes the instructions within the range instructed by the control unit 21, and stores the analysis result (number of each type of instruction) in the instruction execution number storage column 51 corresponding to priority level number 1. Addition is made according to the type of instruction within. Note that the control unit 21 selects address 6 after 9 branches.
On the first branch instruction interrupt, 1 is initialized with zero.

分岐命令割込機構30から通知された分岐後アドレスを
分岐後アドレス61に記憶するだけで、命令語解析部2
2に対して命令の解析指示をしない。
By simply storing the post-branch address notified from the branch instruction interrupt mechanism 30 in the post-branch address 61, the instruction word analysis unit 2
Do not instruct 2 to analyze the command.

以上の動作を行なった後、制御部21は測定対象プログ
ラム41での分岐後アドレスからの実行再開を分岐命令
割込機構30に指示し9次の分岐命令割込み待ちとなる
After performing the above operations, the control unit 21 instructs the branch instruction interrupt mechanism 30 to resume execution from the post-branch address in the measurement target program 41, and waits for the ninth branch instruction interrupt.

ここで、第2図も参照して、プログラム命令実行数測定
装置2の命令語解析部22が解析する範囲について、測
定対象プログラム41のアドレスPOからアドレスP4
までのルーチンを例として説明する。
Here, referring also to FIG. 2, the range to be analyzed by the instruction word analysis unit 22 of the program instruction execution count measuring device 2 is from address PO to address P4 of the measurement target program 41.
The routine up to this point will be explained as an example.

測定対象プログラム41において、アドレスPO,PI
、P2.P3.P4は分岐命令の分岐先アドレスであシ
ョアドレスBl、B2.B3.B4は分岐命令自身のア
ドレスである。まず、測定対象プログラム41のアドレ
スPOK分岐する分岐命令(図示せず)が実行されると
9分岐命令割込機構30によって分岐命令割込みが発生
し、プログラム命令実行数測定装置2(の制御部21)
が動作する。
In the measurement target program 41, addresses PO, PI
, P2. P3. P4 is the branch destination address of the branch instruction, and is the shore address Bl, B2 . B3. B4 is the address of the branch instruction itself. First, when a branch instruction (not shown) that branches to the address POK of the measurement target program 41 is executed, a branch instruction interrupt is generated by the 9 branch instruction interrupt mechanism 30, and the control unit 21 of the program instruction execution number measuring device 2 )
works.

プログラム命令実行数測定装置2(の制御部21)は分
岐命令割込機構30から通知されるアドレスPOを分岐
後アドレス61に記憶する(ここではアドレスPOに分
岐する前の範囲に対する動作手順の説明を省略する)。
The program instruction execution count measuring device 2 (control unit 21 thereof) stores the address PO notified from the branch instruction interrupt mechanism 30 in the post-branch address 61 (here, the operation procedure for the range before branching to the address PO will be explained). ).

次に測定対象プログラム41のアドレスBlでの分岐命
令が実行され9分岐先であるアドレスPiで分岐命令割
込みが発生し、プログラム命令実行数測定装置2(の命
令語解析部22)は分岐命令割込機構3oから通知され
るアドレスB1とこのとき分岐後アドレス61が記憶し
ているアドレスPOとの範囲(アドレスPOからアドレ
スBlまで)Kある命令を解析して、解析結果(命令の
種類毎の数)を命令実行回数記憶列51内の命令の種類
に対応させて加算する。
Next, the branch instruction at address Bl of the measurement target program 41 is executed and a branch instruction interrupt occurs at address Pi, which is the 9th branch destination, and the program instruction execution number measuring device 2 (instruction word analysis unit 22) detects the branch instruction interrupt. The range (from address PO to address Bl) between the address B1 notified from the loading mechanism 3o and the address PO stored in the post-branch address 61 at this time (from address PO to address Bl) is analyzed, and the analysis results (for each type of instruction) are analyzed. ) is added in correspondence with the type of instruction in the instruction execution count storage column 51.

その後、プログラム命令実行数測定装置2(の制御部2
1)は、アドレスB1と共に通知されたアドレスP1を
分岐後アドレス61に記憶する。
After that, the control unit 2 of the program instruction execution count measuring device 2
1) stores the address P1 notified together with the address B1 in the post-branch address 61.

同様に、アドレスB2.B3.B4の分岐命令の実行に
よってそれぞれアドレスP2.P3.P4で分岐命令割
込みが発生し、このときプログラム命令実行数測定装置
2(の命令語解析部22)によって解析されるのは、そ
れぞれ、アドレスPiからアドレスB2までの範囲と、
アドレスP2からアドレスB3までの範囲と、アドレス
P3からアドレスB4までの範囲である。なお8分岐命
令割込み時に分岐命令割込機構30から通知されるのは
1分岐命令自身のアドレス(Bl、B2.B3.B4)
と分岐命令の分岐先アドレ2(PO,Pl、P2.P3
.P4)の他に、測定対象プログラム41の優先レベル
番号(図示していない)もあり、この優先レベル番号だ
よって命令実行回数記憶列51と分岐後アドレス61と
が選択可能となる。
Similarly, address B2. B3. By executing the branch instruction of B4, addresses P2. P3. A branch instruction interrupt occurs at P4, and at this time, the program instruction execution count measurement device 2 (instruction word analysis unit 22) analyzes the range from address Pi to address B2, and
These are the range from address P2 to address B3, and the range from address P3 to address B4. Note that when an 8-branch instruction interrupt occurs, the address of the 1-branch instruction itself (Bl, B2.B3.B4) is notified from the branch instruction interrupt mechanism 30.
and the branch destination address 2 of the branch instruction (PO, Pl, P2.P3
.. In addition to P4), there is also a priority level number (not shown) of the program to be measured 41, and this priority level number makes it possible to select the instruction execution number storage column 51 and the post-branch address 61.

測定対象プログラム4工に対する測定が終了し。Measurement for 4 programs to be measured has been completed.

優先レベル番号1の分岐命令割込みモード解除指令が入
力装置1から入力される。入力情報解析部20は、この
入力された優先レベル番号1に対する分岐命令割込みモ
ード解除指令を制御部21に通知する。この通知を受け
た制御部21は、優先レベル番号1の分岐命令割込みモ
ードを解除して。
A branch instruction interrupt mode release command with priority level number 1 is input from the input device 1 . The input information analysis unit 20 notifies the control unit 21 of the branch instruction interrupt mode release command for the input priority level number 1. Upon receiving this notification, the control unit 21 cancels the branch instruction interrupt mode of priority level number 1.

分岐命令割込機構30を停止する(分岐命令割込みモー
ド中の優先レベルが他にあれば停止しない)と共に、優
先レベル番号1に対する測定結果を編集出力するように
測定結果編集出力部23に指示する。この指示を受けた
測定結果編集出力部23は、命令実行回数記憶列51を
もとに、実行された命令の合計と命令の種類毎に実行回
数とが分るように編集した測定結果リストア1を出力装
置7に出力する。
The branch instruction interrupt mechanism 30 is stopped (it will not be stopped if there is another priority level in the branch instruction interrupt mode), and the measurement result editing/output unit 23 is instructed to edit and output the measurement results for priority level number 1. . Upon receiving this instruction, the measurement result editing output unit 23 edits the measurement result restore 1 based on the instruction execution number storage column 51 so that the total number of executed instructions and the number of executions for each type of instruction can be determined. is output to the output device 7.

また、命令実行数記憶部5内の命令毎に実行回数を記憶
する命令実行回数記憶列は優先レベル毎に存在し1分岐
後アドレスも優先レベルて対応させて分岐後アドレス記
憶部6内に記憶できるため。
Further, an instruction execution number storage column for storing the number of executions for each instruction in the instruction execution number storage unit 5 exists for each priority level, and the post-branch address is also stored in the post-branch address storage unit 6 in correspondence with the priority level. Because I can.

以上述べた優先レベル1で走行する測定対象プログラム
41単独の測定だけでなく、複数の優先レベルを同時に
測定することが可能である。
It is possible not only to measure only the program to be measured 41 running at priority level 1 described above, but also to simultaneously measure multiple priority levels.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は1分岐命令割込みを利用し
てプログラムの命令実行数を測定するため、プログラム
の内容を全く知らなくとも測定することができ、測定の
ための手続きも簡単であシ。
As explained above, since the present invention measures the number of executed instructions of a program using a single branch instruction interrupt, it can be measured without knowing the contents of the program at all, and the measurement procedure is simple and straightforward. .

さらに測定のための時間も机上で計算場合に比較して大
幅に減少する。また1編集出力されるリストには、単に
実行された命令の合計数だけでなく。
Furthermore, the time required for measurement is significantly reduced compared to when calculating on a desk. Also, the list that is edited and output includes not only the total number of executed instructions.

命令の種類毎に、しかも優先レベル毎に実行された命令
数が出力されるため、プログラム(特に制御プログラム
)の性能を改善する場合には、大変参考になる。
Since the number of executed instructions is output for each type of instruction and each priority level, it is very useful when improving the performance of a program (especially a control program).

以下余日Remaining days below

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

第1図は本発明の一実施例を示すブロック図。 第2図はプログラム命令実行数測定装置の命令語解析部
が解析する範囲を具体的に説明するための関連図である
。 図において。 1・・・入力装置、2・・・プログラム命令実行数測定
装置、3・・・中央処理装置、4・・・主記憶装置、5
・・・命令実行数記憶部、6・・・分岐後アドレス記憶
部。 7・・・出力装置、20・・・入力情報解析部、21・
・・制御部、22・・・命令語解析部、23・・・測定
結果編集出力部、30・・・分岐命令割込機構、41,
42,4n・・・測定対象プログラム、50・・・命令
列、51,52゜5n・・・釡令実行回数記憶列t 6
1+62+6n・・・分岐後アドレス、71j72,7
n・・・測定結果リストである。 第1図
FIG. 1 is a block diagram showing one embodiment of the present invention. FIG. 2 is a related diagram for specifically explaining the range analyzed by the instruction word analysis section of the program instruction execution count measuring device. In fig. DESCRIPTION OF SYMBOLS 1... Input device, 2... Program instruction execution number measuring device, 3... Central processing unit, 4... Main storage device, 5
. . . Instruction execution number storage unit, 6 . . . Post-branch address storage unit. 7... Output device, 20... Input information analysis section, 21.
...Control unit, 22...Instruction word analysis unit, 23...Measurement result editing output unit, 30...Branch instruction interrupt mechanism, 41,
42, 4n...Program to be measured, 50...Instruction string, 51,52゜5n...Function instruction execution number memory string t6
1+62+6n...address after branch, 71j72,7
n: Measurement result list. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 1、分岐命令の実行により分岐後最初の命令が実行され
る前に当該分岐命令を含むプログラムの走行の優先レベ
ルと分岐命令自身のアドレスである分岐前アドレスと分
岐命令の分岐先アドレスである分岐後アドレスとを保持
して内部割込みを発生させ、かつ該内部割込みを一個以
上の前記優先レベル毎に発生する分岐命令割込み手段と
、該分岐命令割込み手段の起動および停止を行なうため
の分岐命令割込みモード設定解除手段と、前記優先レベ
ルに対応させて前記分岐後アドレスを記憶する分岐後ア
ドレス記憶手段と、分岐命令割込み時に前記分岐命令割
込み手段から通知される前記分岐前アドレスと前記分岐
後アドレス記憶手段により当該分岐命令割込みの一度前
の分岐命令割込み時に記憶されていて当該分岐命令割込
み時の前記優先レベルに対応する前記分岐後アドレスと
で示される範囲に存在する命令を探索し、命令の種類毎
の個数を解析する命令解析手段と、該命令解析手段によ
る解析結果である命令の種類毎の個数を命令の種類毎に
かつ前記優先レベル毎に対応させて累積し記憶する命令
数記憶手段と、該命令数記憶手段により累積記憶された
命令の種類毎の個数を前記優先レベル毎に編集出力する
編集出力手段とを有することを特徴とするプログラムの
命令実行数測定方式。
1. Before the first instruction after a branch is executed by executing a branch instruction, the priority level of the program including the branch instruction, the pre-branch address which is the address of the branch instruction itself, and the branch address which is the branch destination address of the branch instruction. a branch instruction interrupt means for generating an internal interrupt while holding a subsequent address and generating the internal interrupt for each of the one or more priority levels; and a branch instruction interrupt for starting and stopping the branch instruction interrupt means. mode setting canceling means; post-branch address storage means for storing the post-branch address in correspondence with the priority level; and storage of the pre-branch address and the post-branch address notified from the branch instruction interrupt means at the time of a branch instruction interrupt. The means searches for an instruction existing in the range indicated by the post-branch address that is stored at the time of a branch instruction interrupt just before the branch instruction interrupt and corresponds to the priority level at the time of the branch instruction interrupt, and determines the type of the instruction. an instruction analysis means for analyzing the number of each type of instruction, and an instruction number storage means for accumulating and storing the number of each type of instruction, which is the analysis result of the instruction analysis means, in correspondence with each type of instruction and each priority level; A method for measuring the number of executed instructions of a program, comprising: editing and outputting means for editing and outputting the number of each type of instructions cumulatively stored by the instruction number storage means for each priority level.
JP62133380A 1987-05-30 1987-05-30 Measurement system for number of times of instruction execution of program Pending JPS63300334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62133380A JPS63300334A (en) 1987-05-30 1987-05-30 Measurement system for number of times of instruction execution of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62133380A JPS63300334A (en) 1987-05-30 1987-05-30 Measurement system for number of times of instruction execution of program

Publications (1)

Publication Number Publication Date
JPS63300334A true JPS63300334A (en) 1988-12-07

Family

ID=15103379

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62133380A Pending JPS63300334A (en) 1987-05-30 1987-05-30 Measurement system for number of times of instruction execution of program

Country Status (1)

Country Link
JP (1) JPS63300334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03271839A (en) * 1990-03-20 1991-12-03 Hitachi Ltd Program operation analyzing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03271839A (en) * 1990-03-20 1991-12-03 Hitachi Ltd Program operation analyzing system

Similar Documents

Publication Publication Date Title
JPS63300334A (en) Measurement system for number of times of instruction execution of program
JPS63300333A (en) Measurement system for number of times of instruction execution of program
JPS63300335A (en) Measurement system for number of times of instruction execution of program
JP3389745B2 (en) Apparatus and method for measuring program performance
JPS63300332A (en) Measurement system for number of times of instruction execution of program
JPH04241637A (en) System for measuring number of executed program instruction
JPH10214205A (en) Module checking device
JPH0795294B2 (en) Information processing equipment
JPS59146342A (en) Loop control system
JPH0488426A (en) Program coverage measuring instrument
JPH0795293B2 (en) Information processing equipment
JPH01118935A (en) Measurement system for program comprehension rate
JPH0566967A (en) Measuring system for program comprehension rate
JPH03257548A (en) Measurement system for instruction executing frequency of program
JPS63289654A (en) Program branching instruction monitoring system
JPH05324402A (en) Test state measuring system for program
JPH04342038A (en) Analyzing method for program abnormality
JPH0233173B2 (en)
JPH01205348A (en) Program debugging system
JPH04257934A (en) System for measuring comprehensive rate of program
JPH03268034A (en) Program execution monitoring method
JPH05173838A (en) Instruction executing process recording system
JPH064348A (en) Program debugging system
JPH01140239A (en) Instruction executing address preserving processing system
JPS61198341A (en) Path coverage measuring system