I would like to measure the amount of memory access performed by an application. I used the event MEM_INST_RETIRED (unit masks 0x01 and 0x02) to count total instructions retired which contains a load or a store. However, I don't know whether this event counts only accesses accomplished in RAM or it counts cache (l1,l2 and LLC) access too.
Therefore, I need to measure total memory access (only RAM) performed by an application.
I suggest you the link below.
"Understanding Application Memory Performance"
NOTE: These links are being offered for your convenience and should not be viewed as an endorsement by Intel of the content, products, or services offered there.