JPH02173841A - Counting system for program executing time - Google Patents

Counting system for program executing time

Info

Publication number
JPH02173841A
JPH02173841A JP63330387A JP33038788A JPH02173841A JP H02173841 A JPH02173841 A JP H02173841A JP 63330387 A JP63330387 A JP 63330387A JP 33038788 A JP33038788 A JP 33038788A JP H02173841 A JPH02173841 A JP H02173841A
Authority
JP
Japan
Prior art keywords
instruction
execution time
execution
program
result information
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
JP63330387A
Other languages
Japanese (ja)
Inventor
Hiroshi Nishino
宏 西野
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 JP63330387A priority Critical patent/JPH02173841A/en
Publication of JPH02173841A publication Critical patent/JPH02173841A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To estimate hardware performance by calculating the executing time of program and each module after receiving the instruction executing time of each type of computers and storing these calculated executing time as the executing time statistic result information. CONSTITUTION:An executing instruction tracing means 1 executes a trace operation to the execution of a program 21 to be measured and stores the trace operation as an executing instruction trace result information 22. An executing time calculation statistic means 3 reads out the calculation range editing result information 23 and gives a request to an instruction executing time table control means 4 for each executing instruction included in the information 23. Then the means 3 receives each instruction executing time for each type of computers shown by the computer type-based instruction information 12 and calculates the executing time of the program 21 and each module of the program 21 respectively. These calculated executing times are stored as the executing time statistic result information 24. Thus it is possible to estimate the hardware performance of a new computer containing the same set of instructions as a working computer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム実行時間測定方式に関し、特にプロ
グラムの実行時間を種々の計算機種別について測定する
ためのプログラム実行時間測定方式に間する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program execution time measurement method, and particularly to a program execution time measurement method for measuring program execution time for various types of computers.

〔従来の技術〕[Conventional technology]

従来のプログラム実行時間測定方式は、種々の計算機種
別について、実際のコンピュータの各々の上でテストプ
ログラムを実行させ、それぞれのモジュールごとにそれ
ぞれの実行時間を測定している。
In the conventional program execution time measurement method, a test program is executed on each actual computer of various computer types, and the execution time of each module is measured.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム実行時間測定方式は、実際の
コンピュータの各々の上でテストプログラムを実行させ
ているので、新しいコンピュータの開発に当っては、そ
の新しいコンピュータの開発が完了して、テストプログ
ラムが実行できるまで実行時間を測定することができな
いという欠点を有している。
In the conventional program execution time measurement method described above, a test program is executed on each actual computer, so when developing a new computer, the test program is It has the disadvantage that the execution time cannot be measured until execution is complete.

また、従来のプログラム実行時間測定方式は、実際のコ
ンピュータ上でプログラムを実行させているので、使用
しているコンピュータ以外の他のコンピュータが使用で
きないときには、同一の命令セットを有する他のコンピ
ュータに対しても、プログラムの実行時間を測定するこ
とができないという欠点を有している。
In addition, in the conventional method of measuring program execution time, the program is executed on an actual computer, so if another computer other than the computer being used is unavailable, However, it has the disadvantage that it is not possible to measure program execution time.

本発明の目的は、新しいコンピュータの開発に当って、
使用中のコンピュータを用いることにより、使用中のコ
ンピュータと同一の命令セットを含む新しいコンピュー
タについて、命令実行時間からプログラム実行時間を算
定してハードウェアの性能を予測することができるとと
もに、使用しているコンピュータ以外の他のコンピュー
タが使用できなくても、同一の命令セットを含む他のコ
ンピュータについて、命令実行時間からプログラム実行
時間を算定することができるプログラム実行時間測定方
式を提供することにある。
The purpose of the present invention is to develop a new computer.
By using the computer in use, it is possible to predict the performance of the hardware by calculating the program execution time from the instruction execution time for a new computer that has the same instruction set as the computer in use. To provide a program execution time measuring method capable of calculating the program execution time from the instruction execution time for other computers including the same instruction set even if the computer other than the one currently being used is unavailable.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム実行時間測定方式は、(A)測定す
るプログラムの実行に対するトレースを行い、次々に止
環する実行命令とそれらの実行命令の記憶アドレスとを
順次取出し、それらを実行命令トレース結果情報として
記憶する実行命令トレース手段、 (B)実行時間を区分して算定する前記プログラムのそ
れぞれのモジュールを記憶するそれぞれのアドレス範囲
を示すアドレス指示情報を受けて、前記実行命令トレー
ス結果情報を読出して、それぞれの前記モジュールの中
の実行命令に対するトレース結果情報を区分し、それら
を算定範囲編集結果情報として記憶する実行時間算定範
囲編集手段、 (C)算定する計算機種別を示す計算機種別指示情報を
受けて、要求された各実行命令についてあらかじめ記憶
した命令実行時間管理テーブルを検索し、前記計算機種
別指示情報が示す計算機種別の各々の命令実行時間を供
給する命令実行時間テーブル管理手段、 (D)前記算定範囲編集結果情報を読出して、前記算定
範囲編集結果情報に有する各実行命令について、前記命
令実行時間テーブル管理手段に要求して前記計算機種別
指示情報が示す計算機種別の各命令実行時間の供給を受
けて、前記プログラムおよび前記プログラムのそれぞれ
のモジュールに対する実行時間を算定し、それらを実行
時間統計結果情報として記憶する実行時間算定統計手段
、 を備えて構成されている。
The program execution time measurement method of the present invention (A) traces the execution of the program to be measured, sequentially extracts the execution instructions to be stopped one after another and the storage addresses of those execution instructions, and uses them as execution instruction trace result information. (B) receiving address instruction information indicating respective address ranges for storing respective modules of the program whose execution time is to be calculated in sections, and reading out the execution instruction trace result information; , execution time calculation range editing means for classifying trace result information for execution instructions in each of the modules and storing them as calculation range editing result information; (C) receiving computer type instruction information indicating the type of computer to be calculated; (D) an instruction execution time table management means that searches an instruction execution time management table stored in advance for each requested execution instruction and supplies each instruction execution time of the computer type indicated by the computer type instruction information; Reading the calculation range editing result information, and requesting the instruction execution time table management means to supply each instruction execution time for each computer type indicated by the computer type instruction information for each execution instruction included in the calculation range editing result information. Execution time calculation statistics means for calculating the execution time for the program and each module of the program and storing them as execution time statistical result information.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のプログラム実行時間測定方式の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the program execution time measurement method of the present invention.

第1図に示すように、実行命令トレース手段lは、測定
するプログラム21の実行に対するトレースを行い、次
々に出現する実行命令とそれらの実行命令の記憶アドレ
スとを順次取出し、それらを実行命令トレース結果情報
22として記憶している。
As shown in FIG. 1, the execution instruction tracing means 1 traces the execution of the program 21 to be measured, sequentially extracts the execution instructions that appear one after another and the storage addresses of these execution instructions, and traces them into the execution instruction trace. It is stored as result information 22.

また、実行時間算定範囲編集手段2は、プログラム21
の実行時間を区分して算定するため、プログラム21の
それぞれのモジュールを記憶するそれぞれのアドレス範
囲を示すアドレス指示情報11を受けて、実行命令トレ
ース結果情報22を読出して、それぞれのモジュールの
中の実行命令に対するトレース結果情報を区分し、それ
らを算定範囲編集結果情報23として記憶している。
In addition, the execution time calculation range editing means 2 includes a program 21
In order to calculate the execution time of each module separately, we receive the address instruction information 11 indicating the address range in which each module of the program 21 is stored, read the execution instruction trace result information 22, and calculate the execution time of each module. The trace result information for execution instructions is divided and stored as calculation range editing result information 23.

一方、命令実行時間テーブル管理手段4は、算定する計
算機種別を示す計算機種別指示情報12を受けて、実行
時間算定統計手段3から要求された各実行命令について
、あらかじめ記憶した命令実行時間テーブル25を検索
し、計算機種別指示情報12が示す計算機種別の各々の
命令実行時間を実行時間算定統計手段3に供給している
On the other hand, the instruction execution time table management means 4 receives the instruction information 12 by computer type indicating the type of computer to be calculated, and stores the instruction execution time table 25 stored in advance for each execution instruction requested from the execution time calculation statistics means 3. The execution time of each instruction for each computer type indicated by the computer type instruction information 12 is supplied to the execution time calculation statistical means 3.

なお、命令実行時間テーブル管理手段4は、命令実行時
間テーブル25に記憶している命令実行時間の値を更新
する機能も有している。
Note that the instruction execution time table management means 4 also has a function of updating the value of the instruction execution time stored in the instruction execution time table 25.

そこで、実行時間算定統計手段3は、算定範囲編集結果
情報23を読出して、算定範囲編集結果情報23に有す
る各実行命令について、命令実行時間テーブル管理手段
4に要求して計算機種別指示情報12が示す計算機種別
の各命令実行時間の供給を受けて、プログラム21およ
びプログラム21のそれぞれのモジュールに対する実行
時間を算定し、それらを実行時間統計結果情報24とし
て記憶している。
Therefore, the execution time calculation statistics means 3 reads the calculation range editing result information 23 and requests the instruction execution time table management means 4 to read the computer type instruction information 12 for each execution instruction included in the calculation range editing result information 23. Upon receiving the instruction execution time for each computer type shown, the execution time for the program 21 and each module of the program 21 is calculated and stored as execution time statistical result information 24.

以上述べたように、本実施例のプログラム実行時間測定
方式は、新しいコンピュータの開発に当って、使用中の
コンピュータを用いることにより、使用中のコンピュー
タと同一の命令セットを含む新しいコンピュータについ
て、命令実行時間からプログラム実行時間を算定してハ
ードウェアの性能を予測することができるとともに、使
用しているコンピュータ以外の他のコンピュータが使用
できなくても、同一の命令セットを含む他のコンピュー
タについて、命令実行時間からプログラム実行時間を算
定することができる。
As described above, when developing a new computer, the program execution time measurement method of this embodiment uses a currently used computer to determine the instructions for a new computer that includes the same instruction set as the currently used computer. It is possible to predict the performance of the hardware by calculating the program execution time from the execution time, and even if other computers other than the one being used are not available, it is possible to predict the performance of the hardware by calculating the program execution time from the execution time. Program execution time can be calculated from instruction execution time.

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

以上説明したように、本発明のプログラム実行時間測定
方式は、新しいコンピュータの開発に当って、使用中の
コンピュータを用いることにより、使用中のコンピュー
タと同一の命令セットを含む新しいコンピュータについ
て、命令実行時間からプログラム実行時間を算定してハ
ードウェアの性能を予測することができるとともに、使
用しているコンピュータ以外の他のコンピュータが使用
できなくても、同一の命令セットを含む他のコンピュー
タについて、命令実行時間がらプログラム実行時間を算
定することができるという効果を有している。
As explained above, when developing a new computer, the program execution time measurement method of the present invention uses a currently used computer to calculate the instruction execution time of a new computer that includes the same instruction set as the currently used computer. It is possible to predict the performance of the hardware by calculating the program execution time from the time, and even if other computers other than the computer being used are not available, the instruction This has the effect that the program execution time can be calculated from the execution time.

報、24・・・・・・実行時間統計結果情報、25・・
・・・・命令実行時間テーブル。
Information, 24... Execution time statistical result information, 25...
...Instruction execution time table.

Claims (1)

【特許請求の範囲】 (A)測定するプログラムの実行に対するトレースを行
い、次々に出現する実行命令とそれらの実行命令の記憶
アドレスとを順次取出し、それらを実行命令トレース結
果情報として記憶する実行命令トレース手段、 (B)実行時間を区分して算定する前記プログラムのそ
れぞれのモジュールを記憶するそれぞれのアドレス範囲
を示すアドレス指示情報を受けて、前記実行命令トレー
ス結果情報を読出して、それぞれの前記モジュールの中
の実行命令に対するトレース結果情報を区分し、それら
を算定範囲編集結果情報として記憶する実行時間算定範
囲編集手段、 (C)算定する計算機種別を示す計算機種別指示情報を
受けて、要求された各実行命令についてあらかじめ記憶
した命令実行時間管理テーブルを検索し、前記計算機種
別指示情報が示す計算機種別の各々の命令実行時間を供
給する命令実行時間テーブル管理手段、 (D)前記算定範囲編集結果情報を読出して、前記算定
範囲編集結果情報に有する各実行命令について、前記命
令実行時間テーブル管理手段に要求して前記計算機種別
指示情報が示す計算機種別の各命令実行時間の供給を受
け て、前記プログラムおよび前記プログラムのそれぞれの
モジュールに対する実行時間を算定し、それらを実行時
間統計結果情報として記憶する実行時間算定統計手段、 を備えることを特徴とするプログラム実行時間測定方式
[Scope of Claims] (A) An execution instruction that traces the execution of the program to be measured, sequentially extracts the execution instructions that appear one after another and the storage addresses of those execution instructions, and stores them as execution instruction trace result information. (B) receiving address instruction information indicating respective address ranges for storing respective modules of the program whose execution time is to be calculated in sections, reading the execution instruction trace result information, and determining the execution time of each of the modules; (C) Execution time calculation range editing means for classifying trace result information for execution instructions in the calculation range and storing them as calculation range editing result information; an instruction execution time table management means that searches an instruction execution time management table stored in advance for each execution instruction and supplies each instruction execution time for each computer type indicated by the computer type instruction information; (D) the calculation range editing result information; , requests the instruction execution time table management means for each execution instruction included in the calculation range editing result information, receives the supply of each instruction execution time for each computer type indicated by the computer type instruction information, and executes the program. and an execution time calculation statistical means for calculating the execution time for each module of the program and storing them as execution time statistical result information.
JP63330387A 1988-12-26 1988-12-26 Counting system for program executing time Pending JPH02173841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63330387A JPH02173841A (en) 1988-12-26 1988-12-26 Counting system for program executing time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63330387A JPH02173841A (en) 1988-12-26 1988-12-26 Counting system for program executing time

Publications (1)

Publication Number Publication Date
JPH02173841A true JPH02173841A (en) 1990-07-05

Family

ID=18232032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63330387A Pending JPH02173841A (en) 1988-12-26 1988-12-26 Counting system for program executing time

Country Status (1)

Country Link
JP (1) JPH02173841A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608866A (en) * 1994-04-08 1997-03-04 Nec Corporation System for measuring and analyzing operation of information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608866A (en) * 1994-04-08 1997-03-04 Nec Corporation System for measuring and analyzing operation of information processor

Similar Documents

Publication Publication Date Title
KR100292642B1 (en) Systems and Methods for Interfering Code Instrumentation
US6223338B1 (en) Method and system for software instruction level tracing in a data processing system
US5371689A (en) Method of measuring cumulative processing time for modules required in process to be traced
US8104036B2 (en) Measuring processor use in a hardware multithreading processor environment
US20050108689A1 (en) Instruction operand tracing for software debug
Beyer et al. CPU Energy Meter: A tool for energy-aware algorithms engineering
Saltzer et al. The instrumentation of Multics
KR102161192B1 (en) Method and apparatus for data mining from core trace
US20090083716A1 (en) Profiling method and program
US20110302561A1 (en) Architecture-aware field affinity estimation
US7698690B2 (en) Identifying code that wastes time performing redundant computation
CN115981980A (en) System performance testing method, apparatus, device, medium, and program product
CN115983173A (en) Register model generation method and device, computer equipment and storage medium
US20040083088A1 (en) Analysis of the performance of a portion of a data processing system
JPH02173841A (en) Counting system for program executing time
Wei et al. FPowerTool: A function-level power profiling tool
Reischer et al. Bio-algebras
JPS60238948A (en) Device for measuring processing time of computer system
CN116088934B (en) Software development workload determination method and server
JPH11327927A (en) Cpu using rate measurement system
JP2505526B2 (en) Bitmap management method for tasks
JP2907092B2 (en) Performance evaluation simulation modeling method and apparatus
JPH10293159A (en) Lsi tester
JPS6337436A (en) Program development backup device
JPH0217552A (en) Performance data measuring system