10365 !Win32OperatingSystem::PerformanceData class methodsFor:'documentation'! |
10365 !Win32OperatingSystem::PerformanceData class methodsFor:'documentation'! |
10366 |
10366 |
10367 examples |
10367 examples |
10368 |
10368 |
10369 " |
10369 " |
10370 self helpIndexTextDictionary |
10370 self helpIndexTextDictionary |
10371 self counterIndexTextDictionary |
10371 self counterIndexTextDictionary |
10372 |
10372 |
10373 self processor processorUsage. |
10373 self global getCounterNameIndexArray. |
10374 self processor interruptsPerSecond. |
10374 self global getObjectNameIndexArray. |
10375 |
10375 |
|
10376 self processor getCounterNameIndexArray. |
|
10377 self processor processorUsage. |
|
10378 self processor interruptsPerSecond. |
|
10379 |
|
10380 self diskIO getCounterNameIndexArray. |
10376 self diskIO diskSpaceFreeInMegaByte. |
10381 self diskIO diskSpaceFreeInMegaByte. |
10377 self diskIO diskQueueLength. |
10382 self diskIO diskQueueLength. |
10378 self diskIO diskTransfersPerSecond. |
10383 self diskIO diskTransfersPerSecond. |
10379 |
10384 |
10380 self process processUsage. |
10385 self process getCounterNameIndexArray. |
10381 self process runningProcesses. |
10386 self process processUsage. |
10382 self process runningProcessNameList. |
10387 self process runningProcesses. |
|
10388 self process runningProcessNameList. |
10383 " |
10389 " |
10384 ! ! |
10390 ! ! |
10385 |
10391 |
10386 !Win32OperatingSystem::PerformanceData class methodsFor:'initialization'! |
10392 !Win32OperatingSystem::PerformanceData class methodsFor:'initialization'! |
10387 |
10393 |
10969 |
10975 |
10970 indexedName |
10976 indexedName |
10971 ^ 'Global' |
10977 ^ 'Global' |
10972 ! ! |
10978 ! ! |
10973 |
10979 |
|
10980 !Win32OperatingSystem::PerformanceData::Global methodsFor:'queries'! |
|
10981 |
|
10982 getCounterNameIndexArray |
|
10983 self error:'Global implements objects only'. |
|
10984 ! |
|
10985 |
|
10986 getObjectNameIndexArray |
|
10987 |data indexNameArray| |
|
10988 |
|
10989 data := self data. |
|
10990 indexNameArray := OrderedCollection new. |
|
10991 |
|
10992 data objectArray do:[:anObject| |
|
10993 |index name| |
|
10994 |
|
10995 index := anObject at:#ObjectNameTitleIndex. |
|
10996 name := Win32OperatingSystem::PerformanceData counterIndexTextDictionary at:index. |
|
10997 |
|
10998 indexNameArray add:(Array with:name with:index). |
|
10999 ]. |
|
11000 |
|
11001 ^ indexNameArray |
|
11002 ! ! |
|
11003 |
10974 !Win32OperatingSystem::PerformanceData::Process class methodsFor:'accessing'! |
11004 !Win32OperatingSystem::PerformanceData::Process class methodsFor:'accessing'! |
10975 |
11005 |
10976 current |
11006 current |
10977 |
11007 |
10978 TheOneAndOnlyInstance isNil ifTrue:[ |
11008 TheOneAndOnlyInstance isNil ifTrue:[ |
13920 ! ! |
13950 ! ! |
13921 |
13951 |
13922 !Win32OperatingSystem class methodsFor:'documentation'! |
13952 !Win32OperatingSystem class methodsFor:'documentation'! |
13923 |
13953 |
13924 version |
13954 version |
13925 ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.301 2007-09-10 14:53:37 sr Exp $' |
13955 ^ '$Header: /cvs/stx/stx/libbasic/Win32OperatingSystem.st,v 1.302 2007-09-10 15:15:06 sr Exp $' |
13926 ! ! |
13956 ! ! |
13927 |
13957 |
13928 Win32OperatingSystem initialize! |
13958 Win32OperatingSystem initialize! |
13929 Win32OperatingSystem::PerformanceData initialize! |
13959 Win32OperatingSystem::PerformanceData initialize! |
13930 Win32OperatingSystem::RegistryEntry initialize! |
13960 Win32OperatingSystem::RegistryEntry initialize! |