JPH04153742A - Measurement system for program performance - Google Patents

Measurement system for program performance

Info

Publication number
JPH04153742A
JPH04153742A JP2277827A JP27782790A JPH04153742A JP H04153742 A JPH04153742 A JP H04153742A JP 2277827 A JP2277827 A JP 2277827A JP 27782790 A JP27782790 A JP 27782790A JP H04153742 A JPH04153742 A JP H04153742A
Authority
JP
Japan
Prior art keywords
module
performance information
performance
program
information storage
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
JP2277827A
Other languages
Japanese (ja)
Inventor
Natsuki Okano
夏樹 岡野
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 JP2277827A priority Critical patent/JPH04153742A/en
Publication of JPH04153742A publication Critical patent/JPH04153742A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To facilitate the evaluation of the program performance by providing a performance information retrieval/display means which retrieves a performance information store table with the request command of a user and displays the program performance information. CONSTITUTION:A main control means 9 calls out a performance information retrieval/display means 5 after recognizing that a debug command called out by a command input means 8 is inputted for display of the information on the performance measurement result. The means 5 retrieves a performance information store table 6 and displays the called module, the module of the calling side, the calling frequency, and the time of a CPU consumed by the module for each calling side on a terminal equipment 12 and an YSOUT file 13. Then the means 5 returns to the means 9. Thus the more detailed performance information is obtained for evaluation of the user program performance and can effectively contribute to the support for improvement of the program performance.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラムモジュールの入口、および出口で割
込みを発生させることができる情報処理システムにおけ
る、利用者プログラムのデバッグ作業に関し、特にモジ
ュール単位のプログラム性能測定方式に関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to debugging of user programs in information processing systems capable of generating interrupts at the entrance and exit of program modules, and in particular to debugging of user programs in module units. Concerning performance measurement methods.

〔従来の技術〕[Conventional technology]

従来、利用者プログラム内のモジュールの性能測定を行
う場合には、プロファイラのようにコンパイル時に各1
モジユールの入口と出口にサブルーチンの呼び出し処理
を埋め込み、プログラムの実行時に、このモジュールの
入口と出口のサブルーチンの呼び出し処理によって、該
モジュールで消費された020時間の合計を収得する方
法があった。
Conventionally, when measuring the performance of modules in a user program, each module is
There is a method of embedding subroutine call processing at the entrance and exit of a module, and obtaining the total time spent in the module by the subroutine call processing at the entrance and exit of the module when the program is executed.

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

上述した従来の方法では、モジュール単位に消費された
CPU時間の合計しか測定できなかった。
In the conventional method described above, only the total amount of CPU time consumed per module could be measured.

そのため、対象モジュールが複数の場所から呼び出され
た時に、パラメータの違い等で消費されるCPU時間が
変わる場合があっても、その違いを調べることはできな
かった。
Therefore, even if the CPU time consumed may change due to differences in parameters when the target module is called from multiple locations, it has not been possible to investigate the differences.

本発明の目的は、モジュールの呼び出し元ごとに呼び出
し回数と消費したCPU時間を表示することで、プログ
ラムの性能を評価するうえでの大きな手助けとなること
である。
An object of the present invention is to greatly assist in evaluating the performance of a program by displaying the number of calls and the CPU time consumed for each caller of a module.

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

本発明は、プログラムモジュールの入口及び出口で割込
みを発生させることができるシステムにおいて、 前記システムに組み込まれているタイマーの値を収得す
るCPU時間計測手段と、割込み命令処理手段、及びコ
マンド入力手段とを含むデバッガと、 前記モジュールの呼び出し元アドレス、及び該モジュー
ルが呼び出された回数、及び該モジュールに入った時の
前記タイマーの値、及び該モジュールから戻る時の前記
タイマーの値から、前記モジュールに入った時のタイマ
ーの値の差を演算して得られる各呼び出し元ごとの該モ
ジュールのCPU消費時間とを含むプログラム性能情報
を、性能情報格納テーブルに格納する性能情報記憶手段
と、 利用者の要求コマンドにより、前記性能情報格納テーブ
ルを検索し、前記プログラム性能情報を表示する性能情
報検索/表示手段とを有することを特徴とするプログラ
ム性能測定方式により、前記課題を解決しようとするも
のである。
The present invention provides a system capable of generating interrupts at the entrance and exit of a program module, which comprises a CPU time measuring means for acquiring the value of a timer built into the system, an interrupt command processing means, and a command input means. a debugger that includes a debugger that executes a call to the module from the caller address of the module, the number of times the module is called, the value of the timer when entering the module, and the value of the timer when returning from the module. performance information storage means for storing program performance information including the CPU consumption time of the module for each caller obtained by calculating the difference between the timer values at the time of entry into a performance information storage table; The above-mentioned problem is solved by a program performance measurement method characterized by having performance information search/display means for searching the performance information storage table and displaying the program performance information in response to a request command. .

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の構成を示す図である。FIG. 1 is a diagram showing the configuration of the present invention.

第1図において、1はプログラム性能測定方式、2は割
込み命令処理手段7、コマンド入力手段8、主制御手段
9、を有する従来のデバッガ、3はCPU時間計測手段
、4は性能情報記憶手段、5は性能情報検索/表示手段
、6は性能情報格納テーブル、10はオペレーティング
システム、11は5YSINフアイル、12は端末装置
、13は5YSOUTフアイル、14は利用者プログラ
ムである。
In FIG. 1, 1 is a program performance measurement system, 2 is a conventional debugger having interrupt instruction processing means 7, command input means 8, and main control means 9; 3 is CPU time measurement means; 4 is performance information storage means; 5 is a performance information search/display means, 6 is a performance information storage table, 10 is an operating system, 11 is a 5YSIN file, 12 is a terminal device, 13 is a 5YSOUT file, and 14 is a user program.

プログラムの性能測定方式1は、従来のデバッガ2と、
CPU時間計測手段3と、性能情報記憶手段4と、性能
情報検索/表示手段5と、性能情報格納テーブル6から
構成されている。
Program performance measurement method 1 uses a conventional debugger 2,
It is composed of a CPU time measurement means 3, a performance information storage means 4, a performance information search/display means 5, and a performance information storage table 6.

本実施例において、利用者が5YSINフアイル11、
または端末装置12から本発明にプログラムの性能測定
を行うように指示すると、プログラム性能測定方式1は
、利用者プログラム14内の各モジュールの入口および
出口で割り込みを発生させるようにシステムに指示する
In this embodiment, the user has the 5YSIN file 11,
Alternatively, when the terminal device 12 instructs the present invention to measure the performance of a program, the program performance measurement method 1 instructs the system to generate an interrupt at the entrance and exit of each module in the user program 14.

その後利用者が利用者プログラム14の実行開始を指示
すると、利用者プログラム14の実行が開始される。
Thereafter, when the user instructs to start executing the user program 14, the execution of the user program 14 is started.

モジュールの入口または出口で割り込みが発生すると、
割り込み命令処理手段7が利用者プログラム14から呼
び出され、モジュールの入口での割込みであることを認
識し、CPU時間計測手段3を呼び出す。
When an interrupt occurs at module entry or exit,
The interrupt instruction processing means 7 is called by the user program 14, recognizes that the interrupt is at the entrance of a module, and calls the CPU time measuring means 3.

CPU時間計測手段3は、割込み命令処理手段7から呼
び出され、システムに組み込まれているタイマーの値を
読み、性能情報記憶手段4を呼び出す。
The CPU time measuring means 3 is called by the interrupt command processing means 7, reads the value of a timer built into the system, and calls the performance information storage means 4.

性能情報記憶手段4は、モジュールの入口での割込み命
令の延長でCPU時間計測手段3から呼び出された場合
には、割込みの発生したアドレスと、呼び出し元のアド
レスと、呼び出し回数と、CPU時間計測手段3で収得
したCPUタイマーの値と、性能測定中であることを示
すフラグを性能情報格納テーブル6に格納する。
When the performance information storage means 4 is called by the CPU time measurement means 3 as an extension of an interrupt instruction at the module entrance, the performance information storage means 4 stores the address where the interrupt occurred, the address of the caller, the number of calls, and the CPU time measurement. The value of the CPU timer obtained by means 3 and a flag indicating that performance measurement is in progress are stored in the performance information storage table 6.

性能情報記憶手段4は、モジュールの出口での割込み命
令の延長でCPU時間計測手段3から呼び出された場合
には、性能情報格納テーブル6を検索し、性能測定中の
フラグがセットされていて、かつ、出口で割込みの発生
したモジュールと入口アドレスが格納されたモジュール
とが一致する場所の、該モジュールの入口(性能測定開
始時)で格納したCPUタイマーの値を、該モジュール
の出口(性能測定終了時)でCPU時間計測手段3で収
得したCPUタイマーの値から引き、その値をこれまで
に該モジュールが呼び出し元ごとに消費したCPU時間
の合計に加えて、性能情報格納テーブル6に格納し、主
制御手段9を呼び出す。
When the performance information storage means 4 is called by the CPU time measurement means 3 as an extension of an interrupt instruction at the exit of the module, the performance information storage means 4 searches the performance information storage table 6 and determines that the performance measurement flag is set. In addition, the value of the CPU timer stored at the entrance of the module (at the start of performance measurement) where the module in which the interrupt occurred at the exit matches the module whose entrance address is stored is stored at the exit of the module (performance measurement (at the time of termination) from the CPU timer value obtained by the CPU time measuring means 3, and add that value to the total CPU time that the module has consumed for each caller so far and store it in the performance information storage table 6. , calls the main control means 9.

主制御手段9は、性能情報記憶手段4から呼び出される
と、割込み命令処理手段7を呼び出す。
When called from the performance information storage means 4, the main control means 9 calls the interrupt instruction processing means 7.

割込み命令処理手段7は、主制御手段9から呼び出され
ると、利用者プログラム14に制御を戻し、利用者プロ
グラム14の実行が再開される。
When called by the main control means 9, the interrupt instruction processing means 7 returns control to the user program 14, and the execution of the user program 14 is resumed.

次にモジュール単位の性能を表示する場合を説明する。Next, the case of displaying the performance of each module will be explained.

利用者が5YSINフアイル11、または端末装置12
から性能測定結果の情報を表示させるためのデバッグコ
マンドを入力すると、コマンド入力手段8は主制御手段
9を呼び出す。
User has 5YSIN file 11 or terminal device 12
When a debug command for displaying information on performance measurement results is inputted from the main control means 9, the command input means 8 calls the main control means 9.

主制御手段9は、コマンド入力手段8から呼び出され、
性能測定結果の情報を表示するためのデバッグコマンド
が入力されたことを認識すると、性能情報検索/表示手
段5を呼び出す。
The main control means 9 is called from the command input means 8,
When recognizing that a debug command for displaying information on performance measurement results has been input, the performance information search/display means 5 is called.

性能情報検索/表示手段5は、主制御手段9から呼び出
され、性能情報格納テーブル6を検索し、呼び出された
モジュールと、呼び出し元のモジュールと、呼び出し回
数と、呼び出し元ごとにモジュールがこれまでに消費し
たCPU時間とを、端末袋212や5YSOUTフアイ
ル13に表示し、主制御手段9に戻る。
The performance information search/display means 5 is called by the main control means 9, searches the performance information storage table 6, and records the called module, the caller module, the number of calls, and the module history for each caller. The amount of CPU time consumed is displayed on the terminal bag 212 and the 5YSOUT file 13, and the process returns to the main control means 9.

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

以上説明したように本発明は、モジュールが消費したC
PU時間を呼び出し元ごとに、呼び出し回数とともに表
示するので、性能測定の対象モジュールが複数の場所か
ら呼び出される時に、パラメータの違い等で消費される
CPU時間が変わる場合でも、呼び出す場所ごとに性能
を評価することを可能にする。
As explained above, the present invention can reduce the amount of C consumed by a module.
Since the PU time is displayed for each calling source along with the number of calls, even if the module to be measured for performance is called from multiple locations and the CPU time consumed changes due to differences in parameters, the performance can be measured for each calling location. enable evaluation.

従って、利用者プログラムの性能評価において、従来の
方法よりも、より詳細な性能情報を取得することができ
るので、プログラムの性能改善を行う際の有効な助けと
なる。
Therefore, in the performance evaluation of a user program, more detailed performance information can be obtained than in the conventional method, which is an effective aid in improving the performance of the program.

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

第1図は本発明の構成を示すブロック図である。 1・・・プログラム性能測定方式、2・・・従来のデバ
ッガ、3・・・CPU時間計測手段、4・・・性能情報
記憶手段、5・・・性能情報検索/表示手段、6・・・
性能情報格納テーブル、7・・・割込み命令処理手段、
8・・・コマンド入力手段、9・・・主制御手段、10
・・・オペレーティングシステム、11・・・5YSI
Nフアイル、12・・・端末装置、13・・・5YSO
UTフアイル、14・・・利用者プログラム。 代理人 弁理士  山 下 穣 平
FIG. 1 is a block diagram showing the configuration of the present invention. DESCRIPTION OF SYMBOLS 1... Program performance measurement method, 2... Conventional debugger, 3... CPU time measurement means, 4... Performance information storage means, 5... Performance information search/display means, 6...
Performance information storage table, 7... interrupt instruction processing means,
8... Command input means, 9... Main control means, 10
...Operating system, 11...5YSI
N file, 12...terminal device, 13...5YSO
UT file, 14...User program. Agent Patent Attorney Johei Yamashita

Claims (1)

【特許請求の範囲】 プログラムモジュールの入口及び出口で割込みを発生さ
せることができるシステムにおいて、前記システムに組
み込まれているタイマーの値を収得するCPU時間計測
手段と、割込み命令処理手段、及びコマンド入力手段と
を含むデバッガと、 前記モジュールの呼び出し元アドレス、及び該モジュー
ルが呼び出された回数、及び該モジュールに入った時の
前記タイマーの値、及び該モジュールから戻る時の前記
タイマーの値から、前記モジュールに入った時のタイマ
ーの値の差を演算して得られる各呼び出し元ごとの該モ
ジュールのCPU消費時間とを含むプログラム性能情報
を、性能情報格納テーブルに格納する性能情報記憶手段
と、 利用者の要求コマンドにより、前記性能情報格納テーブ
ルを検索し、前記プログラム性能情報を表示する性能情
報検索/表示手段とを有することを特徴とするプログラ
ム性能測定方式。
[Scope of Claim] A system capable of generating interrupts at the entrance and exit of a program module, comprising a CPU time measuring means for acquiring the value of a timer built into the system, an interrupt command processing means, and a command input. a debugger comprising: a debugger comprising: a caller address of the module; and the number of times the module has been called; and the value of the timer when entering the module and the value of the timer when returning from the module; Performance information storage means for storing program performance information including the CPU consumption time of the module for each caller obtained by calculating the difference in timer values when the module is entered into a performance information storage table; 1. A program performance measuring method, comprising performance information search/display means for searching the performance information storage table and displaying the program performance information in response to a request command from a person.
JP2277827A 1990-10-18 1990-10-18 Measurement system for program performance Pending JPH04153742A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2277827A JPH04153742A (en) 1990-10-18 1990-10-18 Measurement system for program performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2277827A JPH04153742A (en) 1990-10-18 1990-10-18 Measurement system for program performance

Publications (1)

Publication Number Publication Date
JPH04153742A true JPH04153742A (en) 1992-05-27

Family

ID=17588820

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2277827A Pending JPH04153742A (en) 1990-10-18 1990-10-18 Measurement system for program performance

Country Status (1)

Country Link
JP (1) JPH04153742A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129438A (en) * 1993-11-02 1995-05-19 Nec Corp Information processing performance measuring method
JPH07200368A (en) * 1993-12-29 1995-08-04 Nec Corp Performance information management system in unit of module
JPH0855047A (en) * 1994-08-10 1996-02-27 Nec Corp Instrument and method for measuring system utilization information
WO2014054101A1 (en) * 2012-10-01 2014-04-10 富士通株式会社 Information processing device and performance analysis data collection method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07129438A (en) * 1993-11-02 1995-05-19 Nec Corp Information processing performance measuring method
JPH07200368A (en) * 1993-12-29 1995-08-04 Nec Corp Performance information management system in unit of module
JPH0855047A (en) * 1994-08-10 1996-02-27 Nec Corp Instrument and method for measuring system utilization information
WO2014054101A1 (en) * 2012-10-01 2014-04-10 富士通株式会社 Information processing device and performance analysis data collection method
JPWO2014054101A1 (en) * 2012-10-01 2016-08-25 富士通株式会社 Information processing apparatus and performance analysis data collection method
US9740541B2 (en) 2012-10-01 2017-08-22 Fujitsu Limited Information processing apparatus and method of collecting performance analysis data

Similar Documents

Publication Publication Date Title
JPH04153742A (en) Measurement system for program performance
JPH0728643A (en) Method and apparatus for operating digital-signal processor
JPH09212387A (en) Program development supporting device
JP3339708B2 (en) Event recording method
JPH07191876A (en) Program testing device and using method for the same
JPH04305740A (en) Method for displaying processing status
JPH04153743A (en) Display system for module call information
JPS59208661A (en) Method for measuring load of computer
JPH05181712A (en) Stack history forming system
JP2006202102A (en) Simulation apparatus
JPH02126345A (en) Information processor
JPH08153026A (en) Method for measuring program performance evaluation data and measuring device therefor
JPH05210536A (en) Execution time measurement system
JPH0241532A (en) Exception processing method for microprocessor
CN115964284A (en) Application program exception positioning method and device, electronic equipment and storage medium
JPH01237738A (en) Test coverage monitor system for automatically grasp host information
JPS6274130A (en) Data generating system for program structure
JPS63289654A (en) Program branching instruction monitoring system
JPS6292035A (en) Program debugging device
JPS638946A (en) Program debug supporting system
JPH03119435A (en) Program trace system
JPH0362238A (en) Back-up system for decision of file capacity
JPS63191243A (en) Collection system for jump history data
JPH06348538A (en) Debugger
JPS63268040A (en) Program debugging system