CPU Indicator

This page shows how to use the CpuIndicator widget to display current CPU utilization (%). 

The widget displays utilization level of the system's CPU, and will periodically update the graphic with the current utilization. Additionally, an API interface is available so the information can be used within an applications.

The source code below shows how to use the widget in your application. The constructor takes three arguments:
  • id - the id of the img tag to be created by the CpuIndicator widget
  • container - the id of <div> element  which will contain the widget
  • updateInterval - how often the battery level will be updated (in secs)

You just instantiate the object and forget.


Source code
    ...
    
    <script type="text/javascript" src="CpuIndicator.js"></script>
     
    <script type="text/javascript">
    function onPageLoad()
    {
        cpuIndicatorExample = new cpuIndicator( "cpuSrc", "cpuSrcContainer", 10 );
} </script> ... <body onload="return onPageLoad();">
           <div id="cpuSrcContainer"">
...

The cpuIndicator widget was built using Intel's Web 2.0 TDK (insert link here).

Copyright Intel Corporation 2007