Re: Accessing x86 Performance Counters

2015-05-13 Thread CraigDillabaugh via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 09:26:40 UTC, Benjamin Thaut wrote: On Wednesday, 13 May 2015 at 08:53:10 UTC, Kagamin wrote: There was no word about windows, but process explorer shows page faults and cycles per process from unprivileged account, so I guess, this information is available through

Re: Accessing x86 Performance Counters

2015-05-13 Thread Dmitri Makarov via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 03:38:33 UTC, Maxime Chevalier-Boisvert wrote: I was wondering if anyone has written D code to access the x86 performance counters, to get information such as the number of cache misses and cycle count. Intel made available the source of their performance counter

Re: Accessing x86 Performance Counters

2015-05-13 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 03:38:33 UTC, Maxime Chevalier-Boisvert wrote: I was wondering if anyone has written D code to access the x86 performance counters, to get information such as the number of cache misses and cycle count. It would probably be easiest to write some bindings to PAPI-C

Re: Accessing x86 Performance Counters

2015-05-13 Thread Benjamin Thaut via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 08:53:10 UTC, Kagamin wrote: There was no word about windows, but process explorer shows page faults and cycles per process from unprivileged account, so I guess, this information is available through some API. Not sure is such system-wide statistics is available to

Re: Accessing x86 Performance Counters

2015-05-13 Thread via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 03:38:33 UTC, Maxime Chevalier-Boisvert wrote: I was wondering if anyone has written D code to access the x86 performance counters, to get information such as the number of cache misses and cycle count. For linux, you could try: https://www.google.no/search?q=perf

Re: Accessing x86 Performance Counters

2015-05-13 Thread Kagamin via Digitalmars-d-learn
There was no word about windows, but process explorer shows page faults and cycles per process from unprivileged account, so I guess, this information is available through some API. Not sure is such system-wide statistics is available too.

Re: Accessing x86 Performance Counters

2015-05-12 Thread Benjamin Thaut via Digitalmars-d-learn
On Wednesday, 13 May 2015 at 03:38:33 UTC, Maxime Chevalier-Boisvert wrote: I was wondering if anyone has written D code to access the x86 performance counters, to get information such as the number of cache misses and cycle count. I considered doing that at one point. So I looked for resource

Accessing x86 Performance Counters

2015-05-12 Thread Maxime Chevalier-Boisvert via Digitalmars-d-learn
I was wondering if anyone has written D code to access the x86 performance counters, to get information such as the number of cache misses and cycle count.