terminate_delay_time,
278 static string VendorStr(
void) {
returnIS().m_VendorStr; }
279 static string BrandStr(
void) {
returnIS().m_BrandStr; }
281 static bool SSE3(
void) {
returnIS().f01_ECX_[0]; }
282 static bool PCLMULQDQ(
void) {
returnIS().f01_ECX_[1]; }
283 static bool MONITOR(
void) {
returnIS().f01_ECX_[3]; }
284 static bool SSSE3(
void) {
returnIS().f01_ECX_[9]; }
285 static bool FMA(
void) {
returnIS().f01_ECX_[12]; }
286 static bool CMPXCHG16B(
void) {
returnIS().f01_ECX_[13]; }
287 static bool SSE41(
void) {
returnIS().f01_ECX_[19]; }
288 static bool SSE42(
void) {
returnIS().f01_ECX_[20]; }
289 static bool MOVBE(
void) {
returnIS().f01_ECX_[22]; }
290 static bool POPCNT(
void) {
returnIS().f01_ECX_[23]; }
291 static bool AES(
void) {
returnIS().f01_ECX_[25]; }
292 static bool XSAVE(
void) {
returnIS().f01_ECX_[26]; }
293 static bool OSXSAVE(
void) {
returnIS().f01_ECX_[27]; }
294 static bool AVX(
void) {
returnIS().f01_ECX_[28]; }
295 static bool F16C(
void) {
returnIS().f01_ECX_[29]; }
296 static bool RDRAND(
void) {
returnIS().f01_ECX_[30]; }
298 static bool MSR(
void) {
returnIS().f01_EDX_[5]; }
299 static bool CX8(
void) {
returnIS().f01_EDX_[8]; }
300 static bool SEP(
void) {
returnIS().f01_EDX_[11]; }
301 static bool CMOV(
void) {
returnIS().f01_EDX_[15]; }
302 static bool CLFSH(
void) {
returnIS().f01_EDX_[19]; }
303 static bool MMX(
void) {
returnIS().f01_EDX_[23]; }
304 static bool FXSR(
void) {
returnIS().f01_EDX_[24]; }
305 static bool SSE(
void) {
returnIS().f01_EDX_[25]; }
306 static bool SSE2(
void) {
returnIS().f01_EDX_[26]; }
308 static bool FSGSBASE(
void) {
returnIS().f07_EBX_[0]; }
309 static bool BMI1(
void) {
returnIS().f07_EBX_[3]; }
310 static bool HLE(
void) {
returnIS().isIntel() && IS().f07_EBX_[4]; }
311 static bool AVX2(
void) {
returnIS().f07_EBX_[5]; }
312 static bool BMI2(
void) {
returnIS().f07_EBX_[8]; }
313 static bool ERMS(
void) {
returnIS().f07_EBX_[9]; }
314 static bool INVPCID(
void) {
returnIS().f07_EBX_[10]; }
315 static bool RTM(
void) {
returnIS().isIntel() && IS().f07_EBX_[11]; }
316 static bool AVX512F(
void) {
returnIS().f07_EBX_[16]; }
317 static bool RDSEED(
void) {
returnIS().f07_EBX_[18]; }
318 static bool ADX(
void) {
returnIS().f07_EBX_[19]; }
319 static bool AVX512PF(
void) {
returnIS().f07_EBX_[26]; }
320 static bool AVX512ER(
void) {
returnIS().f07_EBX_[27]; }
321 static bool AVX512CD(
void) {
returnIS().f07_EBX_[28]; }
322 static bool SHA(
void) {
returnIS().f07_EBX_[29]; }
326 static bool LAHF(
void) {
returnIS().f81_ECX_[0]; }
327 static bool LZCNT(
void) {
returnIS().isIntel() && IS().f81_ECX_[5]; }
328 static bool ABM(
void) {
returnIS().isAMD() && IS().f81_ECX_[5]; }
329 static bool SSE4a(
void) {
returnIS().isAMD() && IS().f81_ECX_[6]; }
330 static bool XOP(
void) {
returnIS().isAMD() && IS().f81_ECX_[11]; }
331 static bool TBM(
void) {
returnIS().isAMD() && IS().f81_ECX_[21]; }
333 static bool SYSCALL(
void) {
returnIS().isIntel() && IS().f81_EDX_[11]; }
334 static bool MMXEXT(
void) {
returnIS().isAMD() && IS().f81_EDX_[22]; }
335 static bool RDTSCP(
void) {
returnIS().isIntel() && IS().f81_EDX_[27]; }
336 static bool _3DNOWEXT(
void) {
returnIS().isAMD() && IS().f81_EDX_[30]; }
337 static bool _3DNOW(
void) {
returnIS().isAMD() && IS().f81_EDX_[31]; }
341 static void Print(
void);
349 bool isAMD(
void)
const{
returnm_Vendor == eAMD; }
350 bool isIntel(
void)
const{
returnm_Vendor == eIntel; }
383 static stringGetUserName(
void);
390 static unsigned intGetCpuCountAllowed(
void);
396 static doubleGetUptime(
void);
403 static Uint8GetTotalPhysicalMemorySize(
void);
408 static Uint8GetAvailPhysicalMemorySize(
void);
424 staticclock_t GetClockTicksPerSecond(
void);
477 extern bool GetMemoryUsage(
size_t* total,
size_t* resident,
size_t* shared);
562 extern void SleepSec(
unsigned longsec,
static string VendorStr(void)
static bool AVX512PF(void)
static bool CMPXCHG16B(void)
static bool AVX512F(void)
static bool PCLMULQDQ(void)
EVendor
CPU vendor â very limited list.
static bool OSXSAVE(void)
static EVendor Vendor(void)
static string BrandStr(void)
static bool AVX512CD(void)
static bool PREFETCHWT1(void)
static bool FSGSBASE(void)
static bool SYSCALL(void)
static bool AVX512ER(void)
static bool MONITOR(void)
static bool _3DNOWEXT(void)
static bool INVPCID(void)
static unsigned int GetCpuCount(void)
Return number of active CPUs/cores (never less than 1).
static unsigned long GetVirtualMemoryPageSize(void)
Return virtual memory page size.
static unsigned long GetVirtualMemoryAllocationGranularity(void)
Return size of an allocation unit (usually it is a multiple of page size).
static Uint8 GetTotalPhysicalMemorySize(void)
Return the amount of actual/total physical memory, in bytes.
static string GetUserName(void)
Get actual user name for the current process.
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
void Print(const CCompactSAMApplication::AlignInfo &ai)
EInterruptOnSignal
Interrupt on signal mode.
@ eRestartOnSignal
Restart operation if interrupted by a signal.
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XNCBI_EXPORT
Defines MS Windows specifics for our "C++" code.
bool SetCpuTimeLimit(unsigned int max_cpu_time, unsigned int terminate_delay_time, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)
[UNIX only] Set CPU time usage limit.
int TSuppressSystemMessageBox
Binary OR of "ESuppressSystemMessageBox".
void SleepMilliSec(unsigned long ml_sec, EInterruptOnSignal onsignal=eRestartOnSignal)
void * TLimitsPrintParameter
Type of parameter for print handler.
unsigned int GetCpuCount(void)
Return number of active CPUs (never less than 1).
bool MemoryAdvise(void *addr, size_t len, EMemoryAdvise advise)
[UNIX only] Advise on memory usage for specified memory region.
EMemoryAdvise
Memory advise.
@ eMADV_WillNeed
Expect access in the near future.
@ eMADV_Mergeable
KSM may merge identical pages.
@ eMADV_Normal
No further special treatment â by default.
@ eMADV_Random
Expect random page references.
@ eMADV_DontNeed
Do not expect access in the near future.
@ eMADV_Sequential
Expect sequential page references.
@ eMADV_DoFork
Do inherit across fork() â by default.
@ eMADV_DontFork
Don't inherit across fork()
@ eMADV_Unmergeable
KSM may not merge identical pages â by default.
ESuppressSystemMessageBox
Suppress Diagnostic Popup Messages.
@ fSuppress_Debug
Debug library.
@ fSuppress_System
System errors.
@ fSuppress_Runtime
Runtime library.
@ fSuppress_Exception
Unhandled exceptions.
void(* TLimitsPrintHandler)(ELimitsExitCode, size_t, CTime &, TLimitsPrintParameter)
Type of handler for printing a dump information after generating any limitation event.
void DisableSuppressSystemMessageBox()
Prevent run of SuppressSystemMessageBox().
int GetProcessFDCount(int *soft_limit=NULL, int *hard_limit=NULL)
Uint8 GetPhysicalMemorySize(void)
Return the amount of physical memory available in the system.
bool SetMemoryLimitSoft(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)
[UNIX only] Set soft memory limit.
bool SetMemoryLimitHard(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)
[UNIX only] Set hard memory limit.
bool IsSuppressedDebugSystemMessageBox()
Check if system message box has been suppressed for debug library.
ELimitsExitCode
Process limits.
@ eLEC_Cpu
CPU time usage limit.
@ eLEC_Memory
Memory limit.
size_t GetVirtualMemoryLimitHard(void)
[UNIX only] Get "hard" memory limit of the virtual memory (address space) in bytes for a current proc...
bool SetMemoryLimit(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)
[UNIX only] Set memory limit.
bool GetCurrentProcessTimes(double *user_time, double *system_time)
bool GetMemoryUsage(size_t *total, size_t *resident, size_t *shared)
bool VerifyCpuCompatibility(string *message=nullptr)
Verify that the CPU, where an application run, is compatible with flags it compiled for.
size_t GetVirtualMemoryLimitSoft(void)
[UNIX only] Get "soft" memory limit of the virtual memory (address space) in bytes for a current proc...
void SuppressSystemMessageBox(TSuppressSystemMessageBox mode=fSuppress_Default)
Suppress popup messages on execution errors.
void SleepMicroSec(unsigned long mc_sec, EInterruptOnSignal onsignal=eRestartOnSignal)
string GetProcessUserName(void)
System/memory information (deprecated, please use CSystemInfo class)
int GetProcessThreadCount(void)
[Linux only] Provides the number of threads in the current process.
unsigned long GetVirtualMemoryAllocationGranularity(void)
Return size of an allocation unit (usually it is a multiple of page size).
unsigned long GetVirtualMemoryPageSize(void)
Return virtual memory page size.
void SleepSec(unsigned long sec, EInterruptOnSignal onsignal=eRestartOnSignal)
Sleep.
Defines: CTimeFormat - storage class for time format.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4