Profiling:Linux:Callgrind

From FIFE development wiki

Jump to: navigation, search

[edit] Introduction

This article covers how to profile FIFE with the callgrind tool under Linux.

[edit] Required software

[edit] Howto

  1. Download and install valgrind.
  2. Download and install callgrind.
  3. Download and install KCachegrind (requires KDE base files).
  4. valgrind --tool=callgrind python2.5 run.py (or: valgrind --tool=callgrind python2.5 <python_script>).
  5. Open the generated profile log with KCachegrind.
Personal tools