What tools for Windows and Linux systems can I use to determine alignment issues, cache misses and other parameters relevant to code generated by Visual C++ and GCC? Can I use these tools to determine the alignment of structures so I can avoid compiler-generated padding?
To determine cache misses you'll want a CPU-level profiler, like oprofile
or vtune
, or a dynamic instrumentation tool, like valgrind
with cachegrind
.
To look for alignment issues on structures, there is a tool called pahole
for object files with DWARF
debugging information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With