mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +00:00
Fix some win32 definitions
You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been cleared out. We might have a working load average for the platform that should help GNU Make work well.
This commit is contained in:
parent
e2e0b042c1
commit
c23b6ecc31
162 changed files with 847 additions and 153 deletions
22
libc/nt/struct/processmemorycounters.h
Normal file
22
libc/nt/struct/processmemorycounters.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_
|
||||
#define COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
struct NtProcessMemoryCountersEx {
|
||||
uint32_t cb; /* count bytes */
|
||||
uint32_t PageFaultCount;
|
||||
uint64_t PeakWorkingSetSize;
|
||||
uint64_t WorkingSetSize;
|
||||
uint64_t QuotaPeakPagedPoolUsage;
|
||||
uint64_t QuotaPagedPoolUsage;
|
||||
uint64_t QuotaPeakNonPagedPoolUsage;
|
||||
uint64_t QuotaNonPagedPoolUsage;
|
||||
uint64_t PagefileUsage;
|
||||
uint64_t PeakPagefileUsage;
|
||||
uint64_t PrivateUsage;
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_PROCESSMEMORYCOUNTERS_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue