Static Public Member Functions |
| static void | init () |
| | Static initilization routine (automatically called).
|
|
These methods allow to query the amount of physical memory, as well as the current memory usage by both the process and OGDF's internal memory manager.
|
| static void * | alignedMemoryAlloc16 (size_t size) |
| static void | alignedMemoryFree (void *p) |
| static int | pageSize () |
| | Returns the page size of virtual memory (in bytes).
|
| static long long | physicalMemory () |
| | Returns the total size of physical memory (in bytes).
|
| static long long | availablePhysicalMemory () |
| | Returns the size of available (free) physical memory (in bytes).
|
| static size_t | memoryUsedByProcess () |
| | Returns the amount of memory (in bytes) allocated by the process.
|
| static size_t | peakMemoryUsedByProcess () |
| | Returns the maximal amount of memory (in bytes) used by the process (Windows/Cygwin only).
|
| static size_t | memoryAllocatedByMemoryManager () |
| | Returns the amount of memory (in bytes) allocated by OGDF's memory manager.
|
| static size_t | memoryInGlobalFreeListOfMemoryManager () |
| | Returns the amount of memory (in bytes) contained in the global free list of OGDF's memory manager.
|
| static size_t | memoryInThreadFreeListOfMemoryManager () |
| | Returns the amount of memory (in bytes) contained in the thread's free list of OGDF's memory manager.
|
| static size_t | memoryAllocatedByMalloc () |
| | Returns the amount of memory (in bytes) allocated on the heap (e.g., with malloc).
|
| static size_t | memoryInFreelistOfMalloc () |
| | Returns the amount of memory (in bytes) contained in free chunks on the heap.
|
|
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 (LARGE_INTEGER &counter) |
| | Returns the current value of the high-performance counter in counter.
|
| static double | elapsedSeconds (const LARGE_INTEGER &startCounter, const LARGE_INTEGER &endCounter) |
| | Returns the elapsed time (in seconds) between startCounter and endCounter.
|
| static __int64 | usedRealTime (__int64 &t) |
| | Returns the elapsed time (in milliseconds) between t and now.
|
|
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.
|
| static bool | cpuSupports (CPUFeature feature) |
| | Returns true if the CPU supports feature.
|
| static int | cacheSizeKBytes () |
| | Returns the L2-cache size (in KBytes).
|
| static int | cacheLineBytes () |
| | Returns the number of bytes in a cache line.
|
| static int | numberOfProcessors () |
| | Returns the number of processors (cores) available on the current system.
|
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 165 of file System.h.