turpin.dev
  • #tags
  • Influential tech
  • Pinned
  • Privacy notice
turpin.dev

#compiler


Profiling resources

Posted on january 20, 2020

Tools

  • valgrind
  • perf
  • /usr/bin/time --verbose
  • Tracy
  • htop

Compiler options

  • https://docs.microsoft.com/en-us/visualstudio/profiling/beginners-guide-to-performance-profiling?view=vs-2019
  • https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=msvc-160
  • https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-debug-optimized-code?view=vs-2019
  • https://www.youtube.com/watch?v=yRKRqzekLU4
  • https://www.youtube.com/watch?v=THE14sSDT6A&feature=youtu.be
  • https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

Enabling in gcc

Use -p for prof and -pg for gprof. But it will take longer to run.

References

  • Caches
  • Online compilers
#profiling  #compiler  #cpp  #c++  #cache 

Dean Turpin  •  2021  •  turpin.dev

Hugo v0.74.3 powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo