JPH02100733A - Required time measuring system - Google Patents

Required time measuring system

Info

Publication number
JPH02100733A
JPH02100733A JP63254183A JP25418388A JPH02100733A JP H02100733 A JPH02100733 A JP H02100733A JP 63254183 A JP63254183 A JP 63254183A JP 25418388 A JP25418388 A JP 25418388A JP H02100733 A JPH02100733 A JP H02100733A
Authority
JP
Japan
Prior art keywords
program
specific section
required time
under test
measurement
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
JP63254183A
Other languages
Japanese (ja)
Inventor
Norihei Nakada
徳平 中田
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 JP63254183A priority Critical patent/JPH02100733A/en
Publication of JPH02100733A publication Critical patent/JPH02100733A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To obtain a high-accuracy required time by regarding as the required time of a specific section the number of times of repetition of specific processing in a measuring program from the storage of a start value indicating the start of the specific section in a control indicator by a program to be measured to the storage of an end value indicating the end of the specific section. CONSTITUTION:The start value is stored in the control indicator 4 by the program 2 to be measured at the start of the specific section. The measuring program 6 adds 1 to a counter 4 repeatedly. The program 2 to be measured stores the end value in the control indicator 4 when the specific section ends. Consequently, the measuring program 6 quits addition to a counter 7. At this time, the value stored in the repetitive counter 7 is the required time of the specific section. Thus, the processing constituting the repetition for measurement in the measuring program 6 consists of an extremely small number of instructions (about several instructions) and the accuracy of the required time is nearly equal to that of the processing time of several instructions.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は所要時間測定方式に関し、特に電子計算機によ
るデータ処理における特定区間の所要時間の測定に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a method for measuring required time, and particularly to measuring the time required for a specific section in data processing by an electronic computer.

〔従来の技術〕[Conventional technology]

従来、この種の時間測定に関しては、システムが内蔵し
ている時刻装置やインターバルタイマを使用する方式や
、高精度の外部測定装置を使用する方式等の2種類の方
式があった。
Conventionally, there have been two types of methods for this type of time measurement, such as a method that uses a time device or interval timer built into the system, and a method that uses a high-precision external measuring device.

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

上述した従来の所要時間測定方式においては、内蔵装置
を使用する方式では、測定できる時間の精度が低く、ま
た高精度の外部測定装置を使用する方式では測定時に必
ずその測定装置を設置する必要があり、測定時期や測定
場所が限定される等の問題点があった。
In the conventional time measurement methods described above, methods that use built-in devices have low accuracy in measuring time, and methods that use high-precision external measuring devices require that the measuring device be installed at the time of measurement. However, there were problems such as limitations on the timing and location of measurements.

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

本発明の所要時間測定方式は、メモリを共有しているマ
ルチプロセッサシステムにおいて、所要時間を測定すべ
き特定区間を含む被測定プログラムを実行する被測定プ
ロセッサと、被測定プログラムの特定区間の所要時間を
測定する測定プロセッサと、被測定プログラムの特定区
間の開始及び終了を測定プログラムに通知するための共
有メモリ上の制御指示子とを有している。
The required time measurement method of the present invention is applicable to a multiprocessor system that shares memory, in which a processor under test executes a program under test that includes a specific section in which the required time is to be measured, and a and a control indicator on a shared memory for notifying the measurement program of the start and end of a specific section of the program under test.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示す構成図である。第1図
において、本実施例は被測定プログラム2を有する被測
定プロセッサ1と、制御指示子4に有する共有メモリ3
と、測定プログラム6を有する測定プロセッサ5と繰返
しカウンタ7とから構成されている。
FIG. 1 is a block diagram showing an embodiment of the present invention. In FIG. 1, this embodiment includes a processor under test 1 having a program under test 2, and a shared memory 3 having a control indicator 4.
, a measurement processor 5 having a measurement program 6, and a repetition counter 7.

第2図は被測定プログラム2の概要フローチャート、第
3図は測定プログラム6の概要フローチャートである。
FIG. 2 is a schematic flowchart of the program to be measured 2, and FIG. 3 is a schematic flowchart of the measurement program 6.

第2図および第3図において、本実施例は被測定プログ
ラム2により特定区間(処理1)の開始時に、制御指示
子4に開始値を格納する。これにより、測定プログラム
6は、第3図に示すように繰返しカウンタ4に1を加え
る処理を繰返す。被測定プログラム2は特定区間(処理
2)を終了すると、制御指示子4に終了値を格納する。
In FIGS. 2 and 3, in this embodiment, the program under test 2 stores a start value in the control indicator 4 at the start of a specific section (processing 1). As a result, the measurement program 6 repeats the process of adding 1 to the repetition counter 4 as shown in FIG. When the program under test 2 finishes the specific section (processing 2), it stores the end value in the control indicator 4.

これにより測定プログラム6は繰返しカウンタ7への加
算を中止する。この時、繰返しカウンタ7に格納されて
いる値が特定区間(処理2)の所要時間である。
As a result, the measurement program 6 stops adding to the repetition counter 7. At this time, the value stored in the repetition counter 7 is the required time for the specific section (processing 2).

測定プログラム6内の測定時の繰返しを構成している処
理(第3図a、b間の処理〉は非常に少ない命令(数命
令程度)で構成されており、所要時間の精度は数命令の
処理時間程度となる。
The processing that constitutes the repetition during measurement in the measurement program 6 (the processing between a and b in Figure 3) consists of very few instructions (about a few instructions), and the accuracy of the required time is as low as a few instructions. It will take about processing time.

このように本発明の一実施例は、被測定プログラムを有
する被測定プロセッサと、測定プログラム測定プロセッ
サと、共有メモリ上の制御指示子とを有し、被測定プロ
グラムが制御指示子に特定区間の開始を示す開始値を格
納してから、特定区間の終了を示す終了値を格納するま
での間の測定プログラム内の特定処理の繰返し回数をそ
の特定区間の所要時間とする所要時間測定方式を提供す
る。
As described above, one embodiment of the present invention has a processor under test having a program under test, a measurement program measurement processor, and a control indicator on a shared memory, and the program under test specifies a specific interval in the control indicator. Provides a required time measurement method in which the number of repetitions of a specific process within a measurement program from storing a start value indicating the start to storing an end value indicating the end of a specific section is the time required for that specific section. do.

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

以上説明したように本発明は、被測定プログラムが制御
指示子に特定区間の開始を示す開始値を格納してから、
特定区間の終了を示す終了値を格納するまでの間の測定
プログラム内の特定の処理の繰返し回数をその特定区間
の所要時間とすることにより、比較的精度の高い所要時
間を得ることができ、また、外部測定装置が不要のため
、測定時期や測定場所を限定されないという効果がある
As explained above, in the present invention, after the program under test stores a start value indicating the start of a specific section in a control indicator,
By setting the number of repetitions of a specific process in the measurement program until the end value indicating the end of the specific section is stored as the required time for that specific section, the required time can be obtained with relatively high accuracy. Furthermore, since no external measuring device is required, there is an effect that there are no limitations on the timing or location of measurement.

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

第1回は本発明の一実施例を示す構成図、第2図は被測
定プログラムの概要フローチャートを示す図、第3図は
測定プログラムの概要フローチャートを示す図である。 1・・・被測定プロセッサ、2・・・被測定プログラム
、3・・・共有メモリ、4・・・制御指示子、5・・・
測定プロセッサ、6・・・測定プログラム、7・・・繰
返しカウンタ。
The first part is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing a summary flowchart of a program to be measured, and FIG. 3 is a diagram showing a summary flowchart of a measurement program. DESCRIPTION OF SYMBOLS 1... Processor under test, 2... Program under test, 3... Shared memory, 4... Control indicator, 5...
Measurement processor, 6...Measurement program, 7...Repetition counter.

Claims (1)

【特許請求の範囲】[Claims] メモリを共有しているマルチプロセッサシステムにおい
て、所要時間を測定すべき特定区間を含む被測定プログ
ラムを実行する被測定プロセッサと、被測定プログラム
の特定区間の所要時間を測定する測定プログラムを実行
する測定プロセッサと、被測定プログラムの特定区間の
開始及び終了を測定プログラムに通知するための共有メ
モリ上の制御指示子とを有し、被測定プログラムが制御
指示子に特定区間の開始を示す開始値を格納してから、
特定区間の終了を示す終了値を格納するまでの間の、測
定プログラム内の特定の処理の繰返し回数をその特定区
間の所要時間とすることを特徴とする所要時間測定方式
In a multiprocessor system that shares memory, a processor under test executes a program under test that includes a specific section whose required time is to be measured, and a measurement program that executes a measurement program that measures the time required for a specified section of the program under test. It has a processor and a control indicator on a shared memory for notifying the measurement program of the start and end of a specific section of the program under test, and the program under test sets a start value indicating the start of the specific section in the control indicator. After storing it,
A required time measuring method characterized in that the number of times a specific process in a measurement program is repeated until an end value indicating the end of a specific section is stored is the required time for that specific section.
JP63254183A 1988-10-07 1988-10-07 Required time measuring system Pending JPH02100733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63254183A JPH02100733A (en) 1988-10-07 1988-10-07 Required time measuring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63254183A JPH02100733A (en) 1988-10-07 1988-10-07 Required time measuring system

Publications (1)

Publication Number Publication Date
JPH02100733A true JPH02100733A (en) 1990-04-12

Family

ID=17261385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63254183A Pending JPH02100733A (en) 1988-10-07 1988-10-07 Required time measuring system

Country Status (1)

Country Link
JP (1) JPH02100733A (en)

Similar Documents

Publication Publication Date Title
JPH02100733A (en) Required time measuring system
Herring et al. Digital acquisition of EPR spectra using a microprocessor
JPS55126808A (en) Measuring method for shape of cylindrical body
JPS642980B2 (en)
JPS6337436A (en) Program development backup device
JPS5819206B2 (en) Processing method and device for processing measurement data into display data in a weighing device
JP2761306B2 (en) Test method of interval timer
JPS62239247A (en) Electronic computer
EP0024957A1 (en) Apparatus for determining the position of an object
Peterson A comparison of software and hardware monitors
JPH084102B2 (en) Semiconductor inspection equipment
JPS61272840A (en) Test comprehensiveness measuring instrument for microcomputer program
JPH0357970A (en) Pulse input apparatus
JPS63191980A (en) Semiconductor testing device
JPS5814989B2 (en) Operation speed test circuit for logic elements or logic circuits
JPS5855873A (en) Ic tester
JPH0296848A (en) Method for measuring execution time of instruction
JPS63181045A (en) Data processor
JPH05189277A (en) Program execution time measuring instrument for programmable controller
JPH01260318A (en) Process data input apparatus
JPS55116151A (en) Automatic generation system for stepwise advance number of clocks
CARTER The lunar laser ranging pointing problem[Ph. D. Thesis]
ARBOCZ The computation of buckling loads in the case of axially stressed, thin-walled circular cylinders on the basis of prebuckling measurements
JPS6010357A (en) Data collecting device for measuring performance of computer
Benson Hardware fault insertion and instrumentation system: Mechanization and validation(Final Report)