mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOSKRNL] Return some Cc counters in SystemPerformanceInformation
This commit is contained in:
parent
227c4321c2
commit
45964099f3
3 changed files with 16 additions and 4 deletions
|
@ -18,6 +18,10 @@
|
|||
|
||||
extern NPAGED_LOOKASIDE_LIST iBcbLookasideList;
|
||||
|
||||
/* Counters:
|
||||
* - Number of calls to CcMapData that could wait
|
||||
* - Number of calls to CcMapData that couldn't wait
|
||||
*/
|
||||
ULONG CcMapDataWait = 0;
|
||||
ULONG CcMapDataNoWait = 0;
|
||||
|
||||
|
|
|
@ -687,8 +687,8 @@ QSI_DEF(SystemPerformanceInformation)
|
|||
Spi->CcFastMdlReadResourceMiss = 0; /* FIXME */
|
||||
Spi->CcFastMdlReadNotPossible = 0; /* FIXME */
|
||||
|
||||
Spi->CcMapDataNoWait = 0; /* FIXME */
|
||||
Spi->CcMapDataWait = 0; /* FIXME */
|
||||
Spi->CcMapDataNoWait = CcMapDataNoWait;
|
||||
Spi->CcMapDataWait = CcMapDataWait;
|
||||
Spi->CcMapDataNoWaitMiss = 0; /* FIXME */
|
||||
Spi->CcMapDataWaitMiss = 0; /* FIXME */
|
||||
|
||||
|
@ -707,8 +707,8 @@ QSI_DEF(SystemPerformanceInformation)
|
|||
Spi->CcMdlReadNoWaitMiss = 0; /* FIXME */
|
||||
Spi->CcMdlReadWaitMiss = 0; /* FIXME */
|
||||
Spi->CcReadAheadIos = 0; /* FIXME */
|
||||
Spi->CcLazyWriteIos = 0; /* FIXME */
|
||||
Spi->CcLazyWritePages = 0; /* FIXME */
|
||||
Spi->CcLazyWriteIos = CcLazyWriteIos;
|
||||
Spi->CcLazyWritePages = CcLazyWritePages;
|
||||
Spi->CcDataFlushes = 0; /* FIXME */
|
||||
Spi->CcDataPages = 0; /* FIXME */
|
||||
Spi->ContextSwitches = 0; /* FIXME */
|
||||
|
|
|
@ -53,6 +53,14 @@ extern LIST_ENTRY CcPostTickWorkQueue;
|
|||
extern NPAGED_LOOKASIDE_LIST CcTwilightLookasideList;
|
||||
extern LARGE_INTEGER CcIdleDelay;
|
||||
|
||||
//
|
||||
// Counters
|
||||
//
|
||||
extern ULONG CcLazyWritePages;
|
||||
extern ULONG CcLazyWriteIos;
|
||||
extern ULONG CcMapDataWait;
|
||||
extern ULONG CcMapDataNoWait;
|
||||
|
||||
typedef struct _PF_SCENARIO_ID
|
||||
{
|
||||
WCHAR ScenName[30];
|
||||
|
|
Loading…
Reference in a new issue