JPS62125442A - Measurement system for program performance - Google Patents

Measurement system for program performance

Info

Publication number
JPS62125442A
JPS62125442A JP60265545A JP26554585A JPS62125442A JP S62125442 A JPS62125442 A JP S62125442A JP 60265545 A JP60265545 A JP 60265545A JP 26554585 A JP26554585 A JP 26554585A JP S62125442 A JPS62125442 A JP S62125442A
Authority
JP
Japan
Prior art keywords
program
time
measurement
monitor
performance
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
JP60265545A
Other languages
Japanese (ja)
Inventor
Shinji Kitano
伸司 北野
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 JP60265545A priority Critical patent/JPS62125442A/en
Publication of JPS62125442A publication Critical patent/JPS62125442A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To attain the change of time counting sections by providing a register means for start and end points for measurement of the program performance, a means for substitution of a monitor interruption instruction, a time reading means, and a display means. CONSTITUTION:The start and end points of a measurement section are supplied from an input means 1 as the time counting points and registered to a register means 2. A start means 6 loads a program to be measured into a memory and a substituting means 3 substitutes the instructions of the registered start and end points for measurement of program performance for a monitor interruption instruction. An executing means 7 executes the monitor interruption instruction during execution of a program and a reading means 4 reads a time point and stores it into a monitor. Then the means 7 restarts the execution of the program. When the execution is through with the program, both start and end time points for measurement of the program performance are displayed by a display means 5 with a command input supplied from the means 1.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、プログラムの走行性能の測定方式に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to a method for measuring the running performance of a program.

(従来の技術) 従来、この種の性能測定は対象となるプログラムにあら
かじめ測定区間を設定するとともに性能開始点および終
了点に時刻全貌出す処理を埋込み、これにより走行時に
測定区間の両端で時刻を抗出し、経過時間を算出して行
っていた。
(Prior art) Conventionally, in this type of performance measurement, a measurement interval is set in advance in the target program, and a process to display the entire time at the performance start point and end point is embedded. This allows the time to be displayed at both ends of the measurement interval during running. The test was carried out by calculating the elapsed time.

(発明が解決しようとする問題点) 上述した従来の測定方式では、対象となるプログラムに
あらかじめ時刻を読出す処理を埋込んでおく必要があり
、測定区間全容易に変更できないという欠点がある。ま
た、測定を行わない場合にも余分な処理を行わなければ
ならないという欠点もある。
(Problems to be Solved by the Invention) The conventional measurement method described above has the drawback that it is necessary to embed processing for reading the time in advance in the target program, and the entire measurement interval cannot be easily changed. Another disadvantage is that extra processing must be performed even when no measurement is performed.

本発明の目的は、プログラム上の性能開始点と終了点と
をモニタに登録しておき、プログラムのロード時に上記
登録された性能開始点と終了点との命令をモニタ割込み
命令に置換え、モニタ割込み命令により起動された時刻
を記憶しておき、記憶された時刻を表示することによっ
て上記欠点を除去し、実行時に開始と終了点とにおいて
モニタ割込みを発生させて計時を行うことができるよう
に構成したプログラム性能測定方式を提供することにあ
る。
An object of the present invention is to register the performance start point and end point on a program in a monitor, and when the program is loaded, replace the instructions of the registered performance start point and end point with a monitor interrupt instruction, and The above-mentioned drawbacks are eliminated by storing the time at which the program was activated by an instruction and displaying the stored time, and the system is configured to measure time by generating monitor interrupts at the start and end points during execution. The purpose of this invention is to provide a method for measuring program performance.

(問題点を解決するための手段) 本発明によるプログラム性能測定方式は、登録手段と、
置換え手段と、読出し手段と、表示手段とを具備して構
成したものである。
(Means for solving the problem) The program performance measurement method according to the present invention includes a registration means,
It is configured to include a replacing means, a reading means, and a display means.

登録手段は、プログラム性能測定の開始点と終了点とを
モニタに登録するためのものである。
The registration means is for registering the start point and end point of program performance measurement in the monitor.

置換手段は、登録さtしたプログラム性能測定の開始点
と終了点との命令をプログラムロード時にモニタ割込み
命令に置換するためのものである。
The replacement means is for replacing the registered commands at the start and end points of program performance measurement with monitor interrupt commands at the time of program loading.

絖出し手段は、モニタ割込み命令により起動きれ、時刻
を読出して記憶するためのものである。
The start-up means is activated by a monitor interrupt command and is for reading and storing the time.

表示手段は、記憶された続出し時刻を表示するためのも
のである。
The display means is for displaying the stored continuation time.

(実施例) 次に、本発明について図面を参照して詳細に説明する。(Example) Next, the present invention will be explained in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は入力手段1と
、登録手段2と、置換手段3と、続出し手段4と、表示
手段Sと、起動手段6と、実行手段7と、時計8と、C
RTディスプレイ9とから構成されている。
Referring to FIG. 1, one embodiment of the present invention includes an input means 1, a registration means 2, a replacement means 3, a succession means 4, a display means S, a starting means 6, an execution means 7, Clock 8 and C
It is composed of an RT display 9.

第2図を参照すると、第1図に示す登録手段2の動作は
測定区間情報入力ステップ21および計時点記憶ステッ
プ22から成る。
Referring to FIG. 2, the operation of the registration means 2 shown in FIG. 1 consists of a measurement section information input step 21 and a time measurement storage step 22.

第3図を参照すると、第1図に示す置換手段3の動作は
計時点存性判定ステップ31、命令置換ステップ32、
および実行手段起動ステップ33から成る。
Referring to FIG. 3, the operations of the replacement means 3 shown in FIG. 1 include a time survivability determination step 31, an instruction replacement step 32,
and execution means activation step 33.

第4図を参照すると、第1図に示す読出し手段4の動作
は時刻読出しステップ41、時刻記憶ステップ42、お
よび実行手段起動ステップ43がら成る。
Referring to FIG. 4, the operation of the reading means 4 shown in FIG. 1 consists of a time reading step 41, a time storing step 42, and an execution means starting step 43.

第5図を参照すると、第1図に示す表示手段5の動作は
性能算出ステップ51および性能表示ステップ52から
成る。
Referring to FIG. 5, the operation of the display means 5 shown in FIG. 1 consists of a performance calculation step 51 and a performance display step 52.

次に第1図〜第5図を参照して本発明の動作について説
明する。
Next, the operation of the present invention will be explained with reference to FIGS. 1 to 5.

まず、測定者は入力手段lからコマンドを入力し、登録
手段2を動作させる。登録手段2は測定区間情報入力ス
テップ21に従って測定区間の開始点と終了点とを計時
点として入力し、計時点記1、ホステップ22に従って
登録を行う。次に測定者は、入力手段1がらプログラム
超動コマンド全入力して起動手段6を動作させる。起動
手段6は、測定を行うプログラムをメモリ上にロードし
て買戻手段3を動作させる。置換手段3では、まず計時
点存性判定ステップ31に従ってロードされたセグメン
ト内に、登録手段3により登録された計時点が存在する
か否かを利足する。計時点が存在する場合には、命令置
換ステップ32に従って計時点の命令をモニタ割込み命
令に置換した後、実行手段起動ステップ34によって実
行手段7を動作させる。計時点が存在しない場合には、
そのまま実行手段起動ステップ34に従って実行手段7
を動作させる。この後、実行手段7によってプログラム
が実行畑れる。プログラム実行中に置換手段3によって
置換えられたモニタ割込み命令を実行すると、読出手段
4が起動される。脱出手段4では、時刻読出ステップ4
1に従って時刻を続出した後、時刻記憶ステップ42に
従ってモニタ内に時刻を格納する。その後、実行手段起
動ステップ43に従って実行手段7を動作させ、プログ
ラムの実行を再開する。この操作の繰返しにより、プロ
グラム終了時には性能測定の開始点と終了点とにおける
時刻が記憶される。
First, the measurer inputs a command from the input means 1 to operate the registration means 2. The registration means 2 inputs the start point and end point of the measurement section as measurement time points according to the measurement section information input step 21, and performs registration according to the measurement time entry 1 and step 22. Next, the measurer inputs all program hypermotion commands through the input means 1 to operate the starting means 6. The activation means 6 loads a measurement program onto the memory and operates the repurchase means 3. The replacement means 3 first determines whether or not the counted time registered by the registration means 3 exists in the segment loaded according to the time counted existence determination step 31. If the counting time exists, the instruction at the counting time is replaced with a monitor interrupt instruction according to the instruction replacement step 32, and then the execution means 7 is operated in the execution means starting step 34. If there is no measurement point,
The execution means 7 is activated according to the execution means starting step 34.
make it work. Thereafter, the program is executed by the execution means 7. When the monitor interrupt instruction replaced by the replacement means 3 is executed during program execution, the reading means 4 is activated. In escape means 4, time reading step 4
1, the time is stored in the monitor according to time storage step 42. Thereafter, the execution means 7 is operated according to the execution means starting step 43, and the execution of the program is resumed. By repeating this operation, the times at the start and end points of performance measurement are stored when the program ends.

最後に測定者は、入力手段lからコマンド全入力し、表
示手段5を動作させる。表示手段5は性能算出ステップ
51に従って性能を/!4.出し、性能表示ステップ5
2に従って性能をCRTディスプレイ上に表示させる。
Finally, the measurer inputs all commands from the input means 1 and operates the display means 5. The display means 5 displays the performance /! according to the performance calculation step 51. 4. Display performance Step 5
Display the performance on the CRT display according to 2.

なお、性能算出ステップ51における性能算出法を第6
図を参照して説明する。第6図(a)に示すように、時
刻の読出しに伴うモニタ処理時間が存在するため、性能
測定の開始点き終了点とで読出された時刻の差だけでは
正確な性能は得られない。そこで、第6図(b)に示す
ように、モニタ割込へ命令を二つ並べて実行することに
よってモニタ処理時間を測定しておき、第6図(a)の
方式によりプログラム性能=(TB−TA)  (ta
+tb’)とシテ補正スルことにより正確な性能が得ら
れる。
Note that the performance calculation method in the performance calculation step 51 is
This will be explained with reference to the figures. As shown in FIG. 6(a), since there is a monitor processing time associated with reading the time, accurate performance cannot be obtained only from the difference in time read at the start and end points of performance measurement. Therefore, as shown in FIG. 6(b), the monitor processing time is measured by executing two monitor interrupt instructions side by side, and the program performance = (TB- TA) (ta
+tb') and the city correction, accurate performance can be obtained.

(発明の効果) 以上説明したように本発明は、モニタに性能測定機能を
もたせることにより、プログラムごとに性能測定処理機
能をもたせる必要がりいという効果があり、また、プロ
グラム実行前に測定区間を任意に設定できるという効果
もある。
(Effects of the Invention) As explained above, the present invention has the effect that by providing the monitor with a performance measurement function, there is no need to provide a performance measurement processing function for each program, and the measurement period can be determined before program execution. Another advantage is that it can be set arbitrarily.

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

第1図は、本発明によるプログラム性能測定方式を実現
する一実施例を示すブロック図である。 第2図は、第1図における登録手段の動作を示す7o−
チャートである。 第3図は、第1図における置換手段の動作を示す20−
チャートである。 第4図は、第1図における読出し手段の動作を示すフロ
ーチャートである。 第5図は、第1図における表示手段の動作を示すフロー
チャートである。 第6図は、時刻読出し時のモニタ処理時間を示す説明図
である。 l・・・入力手段 2・・・登録手段 3・・・置換手段 4・・・読出し手段 5・・・表示手段 6・・・起動手段 7・脅・実行手段 8・・・時計 9・・・CRTディスプレイ 21.22.31〜33.41〜43.51゜52@・
・舎・動作ステップ
FIG. 1 is a block diagram showing an embodiment of the program performance measurement method according to the present invention. FIG. 2 shows the operation of the registration means in FIG.
It is a chart. FIG. 3 shows the operation of the replacement means in FIG.
It is a chart. FIG. 4 is a flowchart showing the operation of the reading means in FIG. 1. FIG. 5 is a flowchart showing the operation of the display means in FIG. FIG. 6 is an explanatory diagram showing the monitor processing time when reading the time. l...Input means 2...Registration means 3...Replacement means 4...Reading means 5...Display means 6...Start means 7/Threat/execution means 8...Clock 9...・CRT display 21.22.31~33.41~43.51°52@・
・Building・Movement steps

Claims (1)

【特許請求の範囲】[Claims] プログラム性能測定の開始点と終了点とをモニタに登録
するための登録手段と、前記登録されたプログラム性能
測定の開始点と終了点との命令をプログラムロード時に
モニタ割込み命令に置換するための置換手段と、前記モ
ニタ割込み命令により起動され、時刻を読出して記憶す
るための読出し手段と、前記記憶された読出し時刻を表
示するための表示手段とを具備して構成したことを特徴
とするプログラム性能測定方式。
A registration means for registering a start point and an end point of program performance measurement in a monitor, and a replacement for replacing the instructions of the registered start point and end point of program performance measurement with a monitor interrupt instruction at the time of program loading. A program performance characterized by comprising: a reading means activated by the monitor interrupt instruction to read and store a time; and a display means for displaying the stored read time. Measurement method.
JP60265545A 1985-11-26 1985-11-26 Measurement system for program performance Pending JPS62125442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60265545A JPS62125442A (en) 1985-11-26 1985-11-26 Measurement system for program performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60265545A JPS62125442A (en) 1985-11-26 1985-11-26 Measurement system for program performance

Publications (1)

Publication Number Publication Date
JPS62125442A true JPS62125442A (en) 1987-06-06

Family

ID=17418605

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60265545A Pending JPS62125442A (en) 1985-11-26 1985-11-26 Measurement system for program performance

Country Status (1)

Country Link
JP (1) JPS62125442A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6658654B1 (en) 2000-07-06 2003-12-02 International Business Machines Corporation Method and system for low-overhead measurement of per-thread performance information in a multithreaded environment
CN107038109A (en) * 2016-02-03 2017-08-11 龙芯中科技术有限公司 Interruption delay method of testing and device based on MIPS frameworks

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6658654B1 (en) 2000-07-06 2003-12-02 International Business Machines Corporation Method and system for low-overhead measurement of per-thread performance information in a multithreaded environment
CN107038109A (en) * 2016-02-03 2017-08-11 龙芯中科技术有限公司 Interruption delay method of testing and device based on MIPS frameworks
CN107038109B (en) * 2016-02-03 2019-12-13 龙芯中科技术有限公司 interrupt delay testing method and device based on MIPS framework

Similar Documents

Publication Publication Date Title
JPS62125442A (en) Measurement system for program performance
JP3389745B2 (en) Apparatus and method for measuring program performance
JPH1063516A (en) Method and device for bottleneck detection
JPS63282539A (en) Cpu time counting system for optional program section
JPS59208661A (en) Method for measuring load of computer
JPH04148245A (en) Program development support device
JP2761306B2 (en) Test method of interval timer
JPH02126345A (en) Information processor
JPH04275643A (en) System for testing program
JPS6063647A (en) Measuring method of run time of specified program
JPS6215606A (en) Method for confirming executing speed of programmable controller
JPH0229457Y2 (en)
JPH08240448A (en) Display device
JP3179732B2 (en) Progress display system in engine measurement system
JP2539338Y2 (en) Altimeter
JPS59142652A (en) Managing system of elapsed time
JPS60237550A (en) Measuring device for cpu load factor
JPH05189277A (en) Program execution time measuring instrument for programmable controller
JPS63245533A (en) Program performance measuring system
JPH05289899A (en) Measuring system for diagnostic program execution time of hardware
JPS58144266A (en) Measuring device for program executing time
JPS6284348A (en) Microcomputer
JPH01133150A (en) Hardware test system
JPH03129442A (en) Cpu performance measuring instrument
JPS61272840A (en) Test comprehensiveness measuring instrument for microcomputer program