I am trying to determine how close to being bandwidth-limited a code I have written is, so I was wondering whether there are any tools out there to determine memory bandwidth usage? The code I have is a command-line *nix code, and if possible I'd like to measure the bandwidth usage on Mac (but Linux is ok too).
1 Answer
You can use cachegrind. Memory bandwidth is essentially the same as misses in the lowest-level cache.