This GUI component measures the runtime performance of the VMLAB
simulation and displays the results in two formats: the ratio
between how fast simulated time passes compared to real time,
and the effective clock rate of the microcontroller.
The effective clock rate estimates how many instructions are
executed per second of real time. The time ratio will depend on
the user selected clock speed of the microcontroler; the higher
the clock speed, the higher the time ratio will be. The effective
clock speed remains fairly constant over a wide range of
simulated clock speeds, although it will be affected by the
number and type of components used in the project file, as well
as the raw processor speed and load of the underlying computer
on which VMLAB is executing. This component is licensed under the
GNU LGPL v2.1.
The perfmon component is intended for use by other component
developers to make sure their components are not slowing down
the simulation too much. Keep in mind that opening VMLAB's menubar
will pause the simulation and temporarily throw off the
performance measurements made by this component.
Requirements: This component will only run using VMLAB.EXE
version 3.14I or higher. After installing version 3.14, you can
download the
3.14I version files as explained in
this thread on the VMLAB user forum.
Downloads/h4>
Usage
; To use this component, use the following component definition:
;
; X _perfmon NC
;
; This component has one dummy input pin which should be connected to the NC
; (Not Connected) node. This input is not used by the perfmon component, but
; it's needed to satisfy the VMLAB requirement that each user component have
; at least one input or output pin.
Example
X1 _perfmon NC
Screenshot
Below is a screenshot of VMLAB's Control Panel window showing a running instance of the "perfmon" component. The performance statistics will refresh themselves every second of real time: