mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 06:00:08 +01:00
CPUUsage(Windows): add new method using Windows Performance Library
This commit is contained in:
@@ -63,6 +63,13 @@ typedef struct _PERF_COUNTER_HEADER {
|
||||
// If dwType == PERF_COUNTERSET: PERF_MULTI_COUNTERS block + PERF_MULTI_INSTANCES block.
|
||||
} PERF_COUNTER_HEADER, * PPERF_COUNTER_HEADER;
|
||||
|
||||
typedef struct _PERF_MULTI_INSTANCES {
|
||||
ULONG dwTotalSize; // = sizeof(PERF_MULTI_INSTANCES) + sizeof(instance data blocks...)
|
||||
ULONG dwInstances; // Number of instance data blocks.
|
||||
// Followed by:
|
||||
// Instance data blocks...;
|
||||
} PERF_MULTI_INSTANCES, * PPERF_MULTI_INSTANCES;
|
||||
|
||||
typedef struct _PERF_MULTI_COUNTERS {
|
||||
ULONG dwSize; // sizeof(PERF_MULTI_COUNTERS) + sizeof(CounterIds)
|
||||
ULONG dwCounters; // Number of counter ids.
|
||||
|
||||
Reference in New Issue
Block a user