https://github.com/biojppm/hwcounters
  
  
     
    https://github.com/biojppm/hwcounters
  
        Last synced: about 2 months ago 
        JSON representation
    
- Host: GitHub
 - URL: https://github.com/biojppm/hwcounters
 - Owner: biojppm
 - License: mit
 - Created: 2019-01-29T22:36:51.000Z (almost 7 years ago)
 - Default Branch: master
 - Last Pushed: 2019-01-30T22:38:09.000Z (almost 7 years ago)
 - Last Synced: 2025-06-08T21:02:01.635Z (5 months ago)
 - Language: C++
 - Size: 3.91 KB
 - Stars: 2
 - Watchers: 2
 - Forks: 0
 - Open Issues: 0
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          # hwcounters
## Platform notes
* Linux
  * Perf API
    * https://stackoverflow.com/questions/30293956/is-it-possible-to-use-linux-perf-profiler-inside-c-code
    * http://man7.org/linux/man-pages/man2/perf_event_open.2.html
  * SystemTap
    * https://stackoverflow.com/questions/30293956/is-it-possible-to-use-linux-perf-profiler-inside-c-code
    * https://sourceware.org/systemtap/
* Windows
  * https://randomascii.wordpress.com/2016/11/27/cpu-performance-counters-on-windows/
  * https://adamsitnik.com/Hardware-Counters-ETW/
  * https://docs.microsoft.com/en-us/windows/desktop/perfctrs/performance-counters-portal
```
% Processor Time
% User Time
% Privileged Time
Virtual Bytes Peak
Virtual Bytes
Page Faults/sec
Working Set Peak
Working Set
Page File Bytes Peak
Page File Bytes
Private Bytes
Thread Count
Priority Base
Elapsed Time
ID Process
Creating Process ID
Pool Paged Bytes
Pool Nonpaged Bytes
Handle Count
IO Read Operations/sec
IO Write Operations/sec
IO Data Operations/sec
IO Other Operations/sec
IO Read Bytes/sec
IO Write Bytes/sec
IO Data Bytes/sec
IO Other Bytes/sec
Working Set - Private
```
## Alternative apps/libs
* likwid (Linux only) https://github.com/RRZE-HPC/likwid