|
| static void | init () |
| | Static initilization routine (automatically called). More...
|
| |
|
These methods allow to allocate aligned memory and to query the amount of memory used.
|
| static void * | alignedMemoryAlloc16 (size_t size) |
| |
| static void | alignedMemoryFree (void *p) |
| |
| static int | pageSize () |
| | Returns the page size of virtual memory (in bytes). More...
|
| |
| static long long | physicalMemory () |
| | Returns the total size of physical memory (in bytes). More...
|
| |
| static long long | availablePhysicalMemory () |
| | Returns the size of available (free) physical memory (in bytes). More...
|
| |
| static size_t | memoryUsedByProcess () |
| | Returns the amount of memory (in bytes) allocated by the process. More...
|
| |
| static size_t | peakMemoryUsedByProcess () |
| | Returns the maximal amount of memory (in bytes) used by the process (Windows/Cygwin only). More...
|
| |
| static size_t | memoryAllocatedByMemoryManager () |
| | Returns the amount of memory (in bytes) allocated by OGDF's memory manager. More...
|
| |
| static size_t | memoryInGlobalFreeListOfMemoryManager () |
| | Returns the amount of memory (in bytes) contained in the global free list of OGDF's memory manager. More...
|
| |
| static size_t | memoryInThreadFreeListOfMemoryManager () |
| | Returns the amount of memory (in bytes) contained in the thread's free list of OGDF's memory manager. More...
|
| |
| static size_t | memoryAllocatedByMalloc () |
| | Returns the amount of memory (in bytes) allocated on the heap (e.g., with malloc). More...
|
| |
| static size_t | memoryInFreelistOfMalloc () |
| | Returns the amount of memory (in bytes) contained in free chunks on the heap. More...
|
| |
|
These methods provide various ways to measure time.
The high-performance counter (Windows and Cygwin only) can be used to measure real time periods with a better resolution than the standard system time function.
|
| static void | getHPCounter (int64_t &counter) |
| | Returns the current value of the high-performance counter in counter. More...
|
| |
| static double | elapsedSeconds (const int64_t &startCounter, const int64_t &endCounter) |
| | Returns the elapsed time (in seconds) between startCounter and endCounter. More...
|
| |
| static int64_t | usedRealTime (int64_t &t) |
| | Returns the elapsed time (in milliseconds) between t and now. More...
|
| |
| static int64_t | realTime () |
| | Returns the current time point of the real time wall clock. More...
|
| |
|
| static int | getProcessID () |
| | Returns the process ID of the current process. More...
|
| |
|
These methods allow to query information about the current processor such as supported instruction sets (e.g., SSE extensions), cache size, and number of installed processors.
|
| static int | cpuFeatures () |
| | Returns the bit vector describing the CPU features supported on current system. More...
|
| |
| static bool | cpuSupports (CPUFeature feature) |
| | Returns true if the CPU supports feature. More...
|
| |
| static int | cacheSizeKBytes () |
| | Returns the L2-cache size (in KBytes). More...
|
| |
| static int | cacheLineBytes () |
| | Returns the number of bytes in a cache line. More...
|
| |
| static int | numberOfProcessors () |
| | Returns the number of processors (cores) available on the current system. More...
|
| |
System specific functionality.
The class System encapsulates system specific functions providing unified access across different operating systems. The provided functionality includes:
- Access to file system functionality (listing directories etc.).
- Query memory usage.
- Access to high-perfomance counter under Windows and Cygwin.
- Query CPU specific information.
Definition at line 122 of file System.h.