Changeset 51 for trunk/src/helpers/dosh.c
- Timestamp:
- Mar 28, 2001, 8:11:57 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/dosh.c
r50 r51 1785 1785 * or you'll get crashes. 1786 1786 * 1787 * If this call returns NO_ERROR, you get a LONG 1788 * CPU load for each CPU in the system in the 1789 * DOSHPERFSYS.palLoads array (in per-mille, 0-1000). 1787 * If this call returns NO_ERROR, you get LONG load 1788 * values for each CPU in the system in the arrays 1789 * in DOSHPERFSYS (in per-mille, 0-1000). 1790 * 1791 * There are two arrays: 1792 * 1793 * -- DOSHPERFSYS.palLoads contains the "user" load 1794 * for each CPU. 1795 * 1796 * -- DOSHPERFSYS.palIntrs contains the "IRQ" load 1797 * for each CPU. 1798 * 1799 * Sum up the two values to get the total load for 1800 * each CPU. 1790 1801 * 1791 1802 * For example, if there are two CPUs, after this call, 1792 1803 * 1793 * -- DOSHPERFSYS.palLoads[0] contains the load of1794 * the first CPU,1795 * 1796 * -- DOSHPERFSYS.palLoads[ 1] contains the load of1797 * the second CPU.1804 * -- DOSHPERFSYS.palLoads[0] contains the "user" load 1805 * of the first CPU, 1806 * 1807 * -- DOSHPERFSYS.palLoads[0] contains the "user" load 1808 * of the second CPU. 1798 1809 * 1799 1810 * See doshPerfOpen for example code. … … 1884 1895 else 1885 1896 { 1886 /* if (pPerfSys->fInitialized) 1887 pPerfSys->pDosPerfSysCall(CMD_KI_DISABLE, 1888 0, 0, 0); */ 1897 // do not call this, this messes up the WarpCenter V0.9.9 (2001-02-06) [umoeller] 1898 // if (pPerfSys->fInitialized) pPerfSys->pDosPerfSysCall(CMD_KI_DISABLE, 0, 0, 0); 1889 1899 1890 1900 if (pPerfSys->paCPUUtils)
Note:
See TracChangeset
for help on using the changeset viewer.