mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
47 lines
4 KiB
C
47 lines
4 KiB
C
|
#ifndef COSMOPOLITAN_LIBC_NT_PDH_H_
|
||
|
#define COSMOPOLITAN_LIBC_NT_PDH_H_
|
||
|
#include "libc/nt/struct/pdhfmtcountervalue.h"
|
||
|
|
||
|
/* ░░░░
|
||
|
▒▒▒░░░▒▒▒▒▒▒▒▓▓▓░
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▓▓▓▓▓▓░
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓░
|
||
|
▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▒ ▒▒▒▓▓█
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
░▒▒▒░░░░▒▒▒▒▒▒▓▓▓▓▓▓ █▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓░ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
▒▒▒▒░░░▒▒▒▒▒▒▒▓▓▓▓▓▓ ▒▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▒
|
||
|
▒▒▒▒▓▓ ▓▒▒▓▓▓▓ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▓ ▓▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓
|
||
|
░░░░░░░░░░░▒▒▒▒ ▓▓▓▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓█
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▓▓▓ ▓▓▓▓▓▒▒▒▒▒▒▒▒▒▒▓▓▓
|
||
|
░▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓░ ░▓███▓
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▓▓░ ▒▓▓▓▒▒▒ ░▒▒▒▓ ████████████
|
||
|
▒▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▒▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒░ ░███
|
||
|
▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ███
|
||
|
▒▒░░░░░░░░░░▒▒▒▒▒▒▓▓ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ▓██
|
||
|
▒░░░░░░░░░░░▒▒▒▒▒▓▓ ▓▓▓▓▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▓ ▓██
|
||
|
▒▒░░░▒▒▒░░░▒▒░▒▒▒▓▓▒ ▒▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▒ ███
|
||
|
░▒▓ ░▓▓▓▓▒▒▒▒▒▒▒▒░░░░▒▒▒▒▓ ▓██
|
||
|
╔────────────────────────────────────────────────────────────────▀▀▀─────────│─╗
|
||
|
│ cosmopolitan § new technology » performance counters ─╬─│┼
|
||
|
╚────────────────────────────────────────────────────────────────────────────│*/
|
||
|
|
||
|
COSMOPOLITAN_C_START_
|
||
|
|
||
|
int PdhOpenQuery(const char16_t *opt_szDataSource, uint32_t *dwUserData,
|
||
|
int64_t *out_phQuery);
|
||
|
|
||
|
int PdhAddEnglishCounter(int64_t hQuery, const char16_t *szFullCounterPath,
|
||
|
uint32_t *dwUserData, int64_t *out_phCounter);
|
||
|
|
||
|
int PdhCollectQueryDataEx(int64_t hQuery, uint32_t dwIntervalTime,
|
||
|
int64_t hNewDataEvent);
|
||
|
|
||
|
int PdhGetFormattedCounterValue(int64_t hCounter, uint32_t dwFormat,
|
||
|
uint32_t *out_opt_lpdwType,
|
||
|
struct NtPdhFmtCountervalue *out_pValue);
|
||
|
|
||
|
COSMOPOLITAN_C_END_
|
||
|
#endif /* COSMOPOLITAN_LIBC_NT_PDH_H_ */
|